Click here to Skip to main content
15,885,309 members
Articles / Desktop Programming / Windows Forms

MVP-VM (Model View Presenter - ViewModel) with Data Binding and BackgroundWorker in Windows Forms applications

Rate me:
Please Sign up or sign in to vote.
4.98/5 (29 votes)
17 Jun 2010CPOL19 min read 136K   4.9K   99  
This article explains a way to create a Windows Forms app with the thinnest possible Form.cs files.

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataBinding", "DataBinding\DataBinding.csproj", "{615DE65C-AD37-4C2E-97D8-97CF0E85F021}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Debug|Mixed Platforms = Debug|Mixed Platforms
		Debug|x86 = Debug|x86
		Release|Any CPU = Release|Any CPU
		Release|Mixed Platforms = Release|Mixed Platforms
		Release|x86 = Release|x86
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{615DE65C-AD37-4C2E-97D8-97CF0E85F021}.Debug|Any CPU.ActiveCfg = Debug|x86
		{615DE65C-AD37-4C2E-97D8-97CF0E85F021}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
		{615DE65C-AD37-4C2E-97D8-97CF0E85F021}.Debug|Mixed Platforms.Build.0 = Debug|x86
		{615DE65C-AD37-4C2E-97D8-97CF0E85F021}.Debug|x86.ActiveCfg = Debug|x86
		{615DE65C-AD37-4C2E-97D8-97CF0E85F021}.Debug|x86.Build.0 = Debug|x86
		{615DE65C-AD37-4C2E-97D8-97CF0E85F021}.Release|Any CPU.ActiveCfg = Release|x86
		{615DE65C-AD37-4C2E-97D8-97CF0E85F021}.Release|Mixed Platforms.ActiveCfg = Release|x86
		{615DE65C-AD37-4C2E-97D8-97CF0E85F021}.Release|Mixed Platforms.Build.0 = Release|x86
		{615DE65C-AD37-4C2E-97D8-97CF0E85F021}.Release|x86.ActiveCfg = Release|x86
		{615DE65C-AD37-4C2E-97D8-97CF0E85F021}.Release|x86.Build.0 = Release|x86
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		VisualSVNWorkingCopyRoot = .
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Japan Japan
He started his career as a PDP-11 assembly language programmer in downtown Tokyo, learning what "patience" in real life means by punching a 110 baud ASR-33 Teletype frantically. He used to be able to put in the absolute loader sequence through the switch panel without consulting the DEC programming card.

Since then, his computer language experiences include 8051 assembly, FOCAL, BASIC, FORTRAN-IV, Turbo/MS C, VB. VB.NET, and C#.

Now, he lives with his wife, two grown-up kids (get out of my place!), and two cats in Westerville, Ohio.

Comments and Discussions