实例介绍
VS 环境下 WinForm 的 MVC 示例项目,它和 Web 下的 MVC 用法基本一样
【实例截图】
【核心代码】
17955679-ec22-495e-a962-119b4e7fff1a
└── WinformMvcDemo
├── CommonLibrary
│ ├── bin
│ │ ├── Debug
│ │ │ ├── CommonLibrary.dll
│ │ │ ├── CommonLibrary.dll.config
│ │ │ ├── CommonLibrary.pdb
│ │ │ ├── eBay.Service.dll
│ │ │ ├── eBay.Service.SDK.Attribute.dll
│ │ │ ├── EFCachingProvider.dll
│ │ │ ├── EFProviderWrapperToolkit.dll
│ │ │ ├── EFTracingProvider.dll
│ │ │ ├── HelperUDP.dll
│ │ │ ├── HelperUDP.pdb
│ │ │ └── Samples.Helper.dll
│ │ └── Release
│ │ ├── CommonLibrary.dll
│ │ ├── CommonLibrary.dll.config
│ │ ├── CommonLibrary.pdb
│ │ ├── eBay.Service.dll
│ │ ├── eBay.Service.SDK.Attribute.dll
│ │ ├── EFCachingProvider.dll
│ │ ├── EFProviderWrapperToolkit.dll
│ │ ├── EFTracingProvider.dll
│ │ ├── Geckofx-Core.dll
│ │ ├── Geckofx-Core.pdb
│ │ ├── Geckofx-Winforms.dll
│ │ ├── Geckofx-Winforms.pdb
│ │ ├── HelperUDP.dll
│ │ ├── HelperUDP.pdb
│ │ └── Samples.Helper.dll
│ ├── CommonLibrary.csproj
│ ├── Exceptions
│ │ ├── LogException.cs
│ │ ├── MessageException.cs
│ │ └── NonException.cs
│ ├── Helper
│ │ ├── HelperDb.cs
│ │ ├── HelperDictionary.cs
│ │ ├── HelperMemory.cs
│ │ ├── HelperPropertyBag.cs
│ │ └── HelperReflection.cs
│ ├── obj
│ │ ├── Debug
│ │ │ ├── CommonLibrary.csproj.FileListAbsolute.txt
│ │ │ ├── CommonLibrary.csprojResolveAssemblyReference.cache
│ │ │ ├── CommonLibrary.csproj.ResolveComReference.cache
│ │ │ ├── CommonLibrary.dll
│ │ │ ├── CommonLibrary.pdb
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── ResolveAssemblyReference.cache
│ │ │ └── TempPE
│ │ │ └── Web References.net.pushauction.epacketws.Reference.cs.dll
│ │ └── Release
│ │ ├── CommonLibrary.csproj.FileListAbsolute.txt
│ │ ├── CommonLibrary.csprojResolveAssemblyReference.cache
│ │ ├── CommonLibrary.csproj.ResolveComReference.cache
│ │ ├── CommonLibrary.dll
│ │ ├── CommonLibrary.pdb
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── edmxResourcesToEmbed
│ │ │ └── Platform
│ │ │ ├── ProductClient
│ │ │ │ └── DataBase
│ │ │ │ ├── DB.csdl
│ │ │ │ ├── DB.msl
│ │ │ │ └── DB.ssdl
│ │ │ └── SaleBase
│ │ │ └── DataBase
│ │ │ ├── DB.csdl
│ │ │ ├── DB.msl
│ │ │ └── DB.ssdl
│ │ ├── ResolveAssemblyReference.cache
│ │ └── TempPE
│ │ ├── DataBase.DB.Designer.cs.dll
│ │ ├── Platform.ProductClient.DataBase.DB.Designer.cs.dll
│ │ ├── Platform.SaleBase.DataBase.DB.Designer.cs.dll
│ │ ├── Service References.EPacketService.Reference.cs.dll
│ │ └── Web References.net.pushauction.epacketws.Reference.cs.dll
│ └── Properties
│ ├── AssemblyInfo.cs
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── Document
│ ├── bin
│ │ ├── Debug
│ │ │ ├── Document.dll
│ │ │ └── Document.pdb
│ │ └── Release
│ │ ├── Document.dll
│ │ └── Document.pdb
│ ├── DataBaseBak
│ │ └── DB.Bak
│ ├── Document.csproj
│ ├── obj
│ │ ├── Debug
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── Document.csproj.FileListAbsolute.txt
│ │ │ ├── Document.dll
│ │ │ └── Document.pdb
│ │ └── Release
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── Document.csproj.FileListAbsolute.txt
│ │ ├── Document.dll
│ │ └── Document.pdb
│ └── Properties
│ └── AssemblyInfo.cs
├── WinformMvcDemo
│ ├── app.config
│ ├── bin
│ │ ├── Debug
│ │ │ ├── CommonLibrary.dll
│ │ │ ├── CommonLibrary.pdb
│ │ │ ├── WinformMvcDemo.exe
│ │ │ ├── WinformMvcDemo.exe.config
│ │ │ ├── WinformMvcDemo.pdb
│ │ │ ├── WinformMvcDemo.vshost.exe
│ │ │ ├── WinformMvcDemo.vshost.exe.config
│ │ │ ├── WinFormsMVC.dll
│ │ │ └── WinFormsMVC.pdb
│ │ └── Release
│ │ ├── CommonLibrary.dll
│ │ ├── CommonLibrary.pdb
│ │ ├── WinformMvcDemo.exe
│ │ ├── WinformMvcDemo.exe.config
│ │ ├── WinformMvcDemo.pdb
│ │ ├── WinformMvcDemo.vshost.exe
│ │ ├── WinformMvcDemo.vshost.exe.config
│ │ ├── WinformMvcDemo.vshost.exe.manifest
│ │ ├── WinFormsMVC.dll
│ │ └── WinFormsMVC.pdb
│ ├── Controllers
│ │ ├── ClassController.cs
│ │ └── StudentController.cs
│ ├── Entity
│ │ └── EntityStudentRow.cs
│ ├── MDIParentForm.cs
│ ├── MDIParentForm.designer.cs
│ ├── MDIParentForm.resx
│ ├── Models
│ │ ├── ModelClass.cs
│ │ └── ModelStudent.cs
│ ├── obj
│ │ └── x86
│ │ ├── Debug
│ │ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── TempPE
│ │ │ │ └── Resource.DataBase.DB1.Designer.cs.dll
│ │ │ ├── WinformMvcDemo.csproj.FileListAbsolute.txt
│ │ │ ├── WinformMvcDemo.csproj.GenerateResource.Cache
│ │ │ ├── WinformMvcDemo.csprojResolveAssemblyReference.cache
│ │ │ ├── WinformMvcDemo.exe
│ │ │ ├── WinformMvcDemo.MDIParentForm.resources
│ │ │ ├── WinformMvcDemo.pdb
│ │ │ ├── WinformMvcDemo.Properties.Resources.resources
│ │ │ ├── WinformMvcDemo.Views.Class.ClassForm.resources
│ │ │ ├── WinformMvcDemo.Views.Class.ClassSelectForm.resources
│ │ │ ├── WinformMvcDemo.Views.Class.ClassView.resources
│ │ │ ├── WinformMvcDemo.Views.Student.StudentGridViewForm.resources
│ │ │ ├── WinformMvcDemo.Views.Student.StudentQueryView.resources
│ │ │ ├── WinformMvcDemo.Views.Student.StudentRow.resources
│ │ │ ├── WinformMvcDemo.Views.Student.StudentUpdateForm.resources
│ │ │ └── WinformMvcDemo.Views.Student.StudentViewListForm.resources
│ │ └── Release
│ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── WinformMvcDemo.csproj.FileListAbsolute.txt
│ │ ├── WinformMvcDemo.csproj.GenerateResource.Cache
│ │ ├── WinformMvcDemo.csprojResolveAssemblyReference.cache
│ │ ├── WinformMvcDemo.exe
│ │ ├── WinformMvcDemo.MDIParentForm.resources
│ │ ├── WinformMvcDemo.pdb
│ │ ├── WinformMvcDemo.Properties.Resources.resources
│ │ ├── WinformMvcDemo.Views.Class.ClassForm.resources
│ │ ├── WinformMvcDemo.Views.Class.ClassSelectForm.resources
│ │ ├── WinformMvcDemo.Views.Class.ClassView.resources
│ │ ├── WinformMvcDemo.Views.Student.StudentGridViewForm.resources
│ │ ├── WinformMvcDemo.Views.Student.StudentQueryView.resources
│ │ ├── WinformMvcDemo.Views.Student.StudentRow.resources
│ │ ├── WinformMvcDemo.Views.Student.StudentUpdateForm.resources
│ │ └── WinformMvcDemo.Views.Student.StudentViewListForm.resources
│ ├── Program.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ ├── ViewBehavior
│ │ ├── Class
│ │ │ └── IClassBehavior.cs
│ │ └── Student
│ │ └── IStudentRowBehavior.cs
│ ├── Views
│ │ ├── Class
│ │ │ ├── ClassForm.cs
│ │ │ ├── ClassForm.Designer.cs
│ │ │ ├── ClassForm.resx
│ │ │ ├── ClassSelectForm.cs
│ │ │ ├── ClassSelectForm.Designer.cs
│ │ │ ├── ClassSelectForm.resx
│ │ │ ├── ClassView.cs
│ │ │ ├── ClassView.Designer.cs
│ │ │ └── ClassView.resx
│ │ └── Student
│ │ ├── StudentGridViewForm.cs
│ │ ├── StudentGridViewForm.designer.cs
│ │ ├── StudentGridViewForm.resx
│ │ ├── StudentQueryView.cs
│ │ ├── StudentQueryView.Designer.cs
│ │ ├── StudentQueryView.resx
│ │ ├── StudentRow.cs
│ │ ├── StudentRow.Designer.cs
│ │ ├── StudentRow.resx
│ │ ├── StudentUpdateForm.cs
│ │ ├── StudentUpdateForm.designer.cs
│ │ ├── StudentUpdateForm.resx
│ │ ├── StudentViewListForm.cs
│ │ ├── StudentViewListForm.designer.cs
│ │ └── StudentViewListForm.resx
│ └── WinformMvcDemo.csproj
├── WinformMvcDemo.sln
├── WinformMvcDemo.suo
├── WinFormsMVC
│ ├── ActionResult
│ │ ├── DataResult.cs
│ │ ├── ResultBase.cs
│ │ └── ViewResult.cs
│ ├── App.cs
│ ├── bin
│ │ ├── Debug
│ │ │ ├── CommonLibrary.dll
│ │ │ ├── CommonLibrary.pdb
│ │ │ ├── HelperUDP.dll
│ │ │ ├── HelperUDP.pdb
│ │ │ ├── WinFormsMVC.dll
│ │ │ └── WinFormsMVC.pdb
│ │ └── Release
│ │ ├── CommonLibrary.dll
│ │ ├── CommonLibrary.pdb
│ │ ├── Geckofx-Core.dll
│ │ ├── Geckofx-Core.pdb
│ │ ├── HelperUDP.dll
│ │ ├── HelperUDP.pdb
│ │ ├── WinFormsMVC.dll
│ │ └── WinFormsMVC.pdb
│ ├── Controller.cs
│ ├── Controls
│ │ ├── ControlBase.cs
│ │ ├── FlowLayoutPanelControl.cs
│ │ ├── FlowLayoutPanelControl.Designer.cs
│ │ ├── GridViewControl.cs
│ │ ├── GridViewControl.Designer.cs
│ │ ├── GridViewControl.resx
│ │ ├── PageBaseControl.cs
│ │ ├── PageBaseControl.Designer.cs
│ │ ├── PageBaseControl.resx
│ │ ├── PageSimpleControl.cs
│ │ ├── PageSimpleControl.Designer.cs
│ │ ├── PageSimpleControl.resx
│ │ ├── TabViewControl.cs
│ │ ├── TextBoxBaseControl.cs
│ │ ├── TextBoxBaseControl.Designer.cs
│ │ ├── TipControl.cs
│ │ ├── TreeViewBaseControl.cs
│ │ ├── TreeViewBaseControl.Designer.cs
│ │ └── TreeViewBaseControl.resx
│ ├── Enum
│ │ ├── EnumConfig.cs
│ │ └── ShowModel.cs
│ ├── obj
│ │ ├── Debug
│ │ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── GenerateResource.read.1.tlog
│ │ │ ├── GenerateResource.write.1.tlog
│ │ │ ├── TempPE
│ │ │ │ └── Properties.Resources.Designer.cs.dll
│ │ │ ├── WinFormsMVC.Controls.GridViewBaseControl.resources
│ │ │ ├── WinFormsMVC.Controls.GridViewControl.resources
│ │ │ ├── WinFormsMVC.Controls.PageBaseControl.resources
│ │ │ ├── WinFormsMVC.Controls.PageSimpleControl.resources
│ │ │ ├── WinFormsMVC.Controls.TreeViewNodeClass.resources
│ │ │ ├── WinFormsMVC.csproj.FileListAbsolute.txt
│ │ │ ├── WinFormsMVC.csproj.GenerateResource.Cache
│ │ │ ├── WinFormsMVC.csprojResolveAssemblyReference.cache
│ │ │ ├── WinFormsMVC.dll
│ │ │ ├── WinFormsMVC.pdb
│ │ │ ├── WinFormsMVC.Properties.Resources.resources
│ │ │ ├── WinFormsMVC.ViewForm.resources
│ │ │ └── WinFormsMVC.ViewUserControl.resources
│ │ └── Release
│ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── GenerateResource.read.1.tlog
│ │ ├── GenerateResource.write.1.tlog
│ │ ├── ResolveAssemblyReference.cache
│ │ ├── TempPE
│ │ │ └── Properties.Resources.Designer.cs.dll
│ │ ├── WinFormsMVC.Controls.GridViewControl.resources
│ │ ├── WinFormsMVC.Controls.PageBaseControl.resources
│ │ ├── WinFormsMVC.Controls.PageSimpleControl.resources
│ │ ├── WinFormsMVC.Controls.PictureControl.resources
│ │ ├── WinFormsMVC.Controls.ProgressControl.resources
│ │ ├── WinFormsMVC.Controls.TreeViewNodeClass.resources
│ │ ├── WinFormsMVC.csproj.FileListAbsolute.txt
│ │ ├── WinFormsMVC.csproj.GenerateResource.Cache
│ │ ├── WinFormsMVC.csprojResolveAssemblyReference.cache
│ │ ├── WinFormsMVC.dll
│ │ ├── WinFormsMVC.pdb
│ │ ├── WinFormsMVC.Properties.Resources.resources
│ │ ├── WinFormsMVC.ViewForm.resources
│ │ └── WinFormsMVC.ViewUserControl.resources
│ ├── ProgramController.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ └── Resources.resx
│ ├── PropertyBag.cs
│ ├── Resources
│ │ └── CloseButton.gif
│ ├── Route.cs
│ ├── RouteData.cs
│ ├── ViewDataDictionary.cs
│ ├── ViewForm.cs
│ ├── ViewForm.resx
│ ├── ViewUserControlCollection.cs
│ ├── ViewUserControl.cs
│ ├── ViewUserControl.resx
│ ├── WinFormsMVC.csproj
│ └── WinFormsMVC.csproj.user
└── 程序说明.txt
61 directories, 272 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论