views:

194

answers:

8

I am in the process of learning C# (using Visual Studio 2010) to design some stand-alone applications for desktop users. Almost all of my programming experience is with Java for web development. I have read a few books now on C# and am comfortable with the programming but would like to see an example of building an actual program using C#. All of the books I have read present small code samples to illustrate the point of the chapter but none that I have found illustrate the building of a 'complete' application from start to finish (complete being something more than 100 lines of code).

I would really like to find a book, tutorial or example where a fairly robust program is built from the ground up with an explanation of what is done and why for each stage, preferably a program connecting to a database (one of the requirements of the program I will be working on).

Any suggestions would be appreciated.

Brian

A: 

The NerdDinner ASP.NET MVC tutorial walks you through building a database-driven web application.

http://nerddinnerbook.s3.amazonaws.com/Intro.htm

mhughes
@mhughes he needs desktop application example
TheVillageIdiot
A: 

Take a look at https://launchpad.net/npwatcher/ if you want. It's not all that complicated, and development has been stalled, so it would be welcome if you could submit any patches.

Martijn
+1  A: 

You can head over to http://www.codeproject.com and get compete desktop programs/applications to your content.

TheVillageIdiot
A: 

There is lots of code out there,

This is a sample of Nerd Dinner an MVC website

http://nerddinner.codeplex.com/

But there are all sorts of samples out there, code plex is a good start, there are ports of Hibernate, call Nhibernate and Junit called NUnit

Regards

Iain
A: 

Take a look at http://windowsclient.net/ Lots of videos, articles and downloads all relating to Windows Forms or WPF

Barry
A: 

How to make a .Net application is not that different than in java, just another language and different libraries. But I can advice you to use patterns like MVC, MVP, EventAggregator, Inversion of Control (IoC) etc. Microsoft patterns & practice published the so called Composite Application Pattern, which shows how all these pattern (should) work together in a large application. There are two implementations of this pattern:

I hope I could give you a hint in which direction you should search :)

Enyra
A: 

How about http://www.csharp-station.com/

Raymund
A: 

Take a look at Lumisoft mailserver:

http://www.lumisoft.ee/lswww/download/downloads/MailServer/

The config utils are pretty simple desktop programs. The server then is more complex.

Quandary