Factory and Abstract Factory, MVC & MVP

 

The difference between Factory and Abstract Factory , MVP & MVC always confusing me.

 

So today, I’ve been researching it all the day.

 

Here’re two helpful articles that I met. Surely, I’ll summarize what I get to know after a couple days.

 

http://userpages.umbc.edu/~tarr/dp/lectures/Factory-2pp.pdf

http://haacked.com/archive/2008/06/16/everything-you-wanted-to-know-about-mvc-and-mvp-but.aspx

Posted in Uncategorized | Leave a comment

Daily Activity Tracking tool

 

Everyone will have such experience, we are working all the day. However, after one day’s work, we don’t know how much we’ve done. Which job or activity consumes most of your time.

So regarding to this concern, I wrote a tool which records what we’ve done in our all day’s work, and the time that different activities costs. I choose to use WPF technology to accomplish it.

Here’s the tool:

 

When the application start you will see, a semi-transparent input dialog and a time counter appears.

 

 

When we enter the title of the Activity, and press “Enter”, the dialog will be hidden, and the timer will be showing and begins at 00:00:00.

 

Time counter:

 

You will see that. In the timer counter, we also have three buttons next to it. “Reset” is just to used to reset the timer to “00:00:00”, and “View” button will show us the activity detail. Exit button will exit the application.

 

Here’s the Activity Detail dialog:

 

I think it is really worth the time to invent such a tool, it makes ourselves know what we are doing everyday.

Posted in Uncategorized | Leave a comment

CleanBrowser

 

This is a multi-tab webbrowser applications based on Windows Forms tech. I wrote this tool for practice last year, and did not add much more things to it. This makes the navigating much faster. I name it CleanBrowser.

 

Here is a look of it.

 

 

Posted in Uncategorized | Leave a comment

Restaurant Reservation System Tool

For making our daily life easier, I made this restaurant booking system half years ago. Until now, it proves working well.

To make it looks beautiful, I leverage the EXCEL Grid control finished by myself.

Preview of the tool:

Login Form:

Main Form:

 

OrderDetail Form:

PayDetail Form:

Ignore.

Posted in Uncategorized | Leave a comment

StringFormat property in WPF.

 

As we all know that, we can set the FormatString property when using databinding in Winforms. This save us from handling the data pushing and pulling event to do data conversion.

In WPF, since .NET 3.5 SP1, the equivalent of FormatString property comes into hand. That’s the StringFormat property. It also saves us from creating lots of converters to format the data.

The following two blogs demonstrates most parts of the usage.

 

http://blogs.msdn.com/mikehillberg/archive/2008/05/29/trying-out-binding-stringformat.aspx

http://blogs.msdn.com/llobo/archive/2008/05/19/wpf-3-5-sp1-feature-stringformat.aspx

Posted in Uncategorized | Leave a comment

Pack Uri

 

When I was getting touch to WPF several days ago, I found that the Pack Uri is really puzzling me. I am scared with it’s complex spelling, and tried to avoid it as possible as I can.

But latter, after I got familiar with it. I found it really brings great convenience even if it’s ugly spelling.

For the guys who wants a quick start, you may take look at the excellent illustration in this blog.

Posted in Uncategorized | Leave a comment

C# Corner Forum post notification tool

 

Recent days, I tried to answer questions in the C# corner forum. Only because I really very poor, and see I can earn some money if I throw sometime in it.

But it’s a pity that there are not email subscriptions from it, we just don’t know if our post has been replied or viewed or new posts are raised. More often, when I replied to the thread, someone just posted a few seconds earlier than me. It make me earn less credit. So I decide to make a client  which notify me in the first time when something interested happens.

The Preview of my tool:

Thread detail window.

Email notification format:

I will get email notification like the following format.

Now I can get the notification from my tool once there’s a change in the forum.

Posted in Uncategorized | 1 Comment