Click here to Skip to main content
12,507,173 members (60,634 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Downloads

Tagged as

Stats

105.1K views
1.4K downloads
103 bookmarked
Posted

Model View Presenter

, 3 Mar 2009 CPOL
Understand MVP, execute a sample project with MVP, and implement the same using a Windows UI.
MVPStockSample
IStockView
bin
Debug
IStockView.dll
IStockView.pdb
obj
Debug
IStockView.dll
IStockView.pdb
Refactor
IStockView.dll
TempPE
Properties
MVPStockSample.suo
MVPStockSampleWeb
App_Data
Bin
IStockView.dll
IStockView.pdb
Presenter.dll
Presenter.pdb
StockBO.dll
StockBO.pdb
Presenter
bin
Debug
IStockView.dll
IStockView.pdb
Presenter.dll
Presenter.pdb
StockBO.dll
StockBO.pdb
obj
Debug
Presenter.dll
Presenter.pdb
Refactor
Presenter.dll
ResolveAssemblyReference.cache
TempPE
Properties
StockBO
bin
Debug
StockBO.dll
StockBO.pdb
obj
Debug
Refactor
StockBO.dll
StockBO.dll
StockBO.pdb
TempPE
Properties
StockSampleWithOutMVP
App_Data
Bin
StockBO.dll
StockBO.pdb
WindowsMVPStock
bin
Debug
IStockView.dll
IStockView.pdb
Presenter.dll
Presenter.pdb
StockBO.dll
StockBO.pdb
WindowsMVPStock.exe
WindowsMVPStock.pdb
WindowsMVPStock.vshost.exe
obj
Debug
Refactor
ResolveAssemblyReference.cache
TempPE
WindowsMVPStock.csproj.GenerateResource.Cache
WindowsMVPStock.exe
WindowsMVPStock.Form1.resources
WindowsMVPStock.pdb
WindowsMVPStock.Properties.Resources.resources
Properties
namespace WindowsMVPStock
{
    partial class Form1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.btnInCreaseStock = new System.Windows.Forms.Button();
            this.btnDecreaseStock = new System.Windows.Forms.Button();
            this.txtStockValue = new System.Windows.Forms.TextBox();
            this.SuspendLayout();
            // 
            // btnInCreaseStock
            // 
            this.btnInCreaseStock.Location = new System.Drawing.Point(30, 13);
            this.btnInCreaseStock.Name = "btnInCreaseStock";
            this.btnInCreaseStock.Size = new System.Drawing.Size(141, 35);
            this.btnInCreaseStock.TabIndex = 0;
            this.btnInCreaseStock.Text = "Increase Stock";
            this.btnInCreaseStock.UseVisualStyleBackColor = true;
            this.btnInCreaseStock.Click += new System.EventHandler(this.btnInCreaseStock_Click);
            // 
            // btnDecreaseStock
            // 
            this.btnDecreaseStock.Location = new System.Drawing.Point(30, 80);
            this.btnDecreaseStock.Name = "btnDecreaseStock";
            this.btnDecreaseStock.Size = new System.Drawing.Size(141, 34);
            this.btnDecreaseStock.TabIndex = 1;
            this.btnDecreaseStock.Text = "Decrease Stock";
            this.btnDecreaseStock.UseVisualStyleBackColor = true;
            this.btnDecreaseStock.Click += new System.EventHandler(this.btnDecreaseStock_Click);
            // 
            // txtStockValue
            // 
            this.txtStockValue.Location = new System.Drawing.Point(30, 55);
            this.txtStockValue.Name = "txtStockValue";
            this.txtStockValue.Size = new System.Drawing.Size(141, 20);
            this.txtStockValue.TabIndex = 2;
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(292, 266);
            this.Controls.Add(this.txtStockValue);
            this.Controls.Add(this.btnDecreaseStock);
            this.Controls.Add(this.btnInCreaseStock);
            this.Name = "Form1";
            this.Text = "Form1";
            this.Load += new System.EventHandler(this.Form1_Load);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Button btnInCreaseStock;
        private System.Windows.Forms.Button btnDecreaseStock;
        private System.Windows.Forms.TextBox txtStockValue;
    }
}

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)

Share

About the Author


You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160927.1 | Last Updated 3 Mar 2009
Article Copyright 2008 by Shivprasad koirala
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid