Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Differences between MVC and MVP for Beginners

, 23 Nov 2011 CPOL
This article aims to describe MVC and MVP in simple terms
namespace MVPTester
{
    partial class MainForm
    {
        /// <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.btnMVC = new System.Windows.Forms.Button();
            this.btnMVP = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // btnMVC
            // 
            this.btnMVC.Location = new System.Drawing.Point(46, 88);
            this.btnMVC.Name = "btnMVC";
            this.btnMVC.Size = new System.Drawing.Size(75, 23);
            this.btnMVC.TabIndex = 0;
            this.btnMVC.Text = "MVC";
            this.btnMVC.UseVisualStyleBackColor = true;
            this.btnMVC.Click += new System.EventHandler(this.btnMVC_Click);
            // 
            // btnMVP
            // 
            this.btnMVP.Location = new System.Drawing.Point(146, 88);
            this.btnMVP.Name = "btnMVP";
            this.btnMVP.Size = new System.Drawing.Size(75, 23);
            this.btnMVP.TabIndex = 0;
            this.btnMVP.Text = "MVP";
            this.btnMVP.UseVisualStyleBackColor = true;
            this.btnMVP.Click += new System.EventHandler(this.btnMVP_Click);
            // 
            // MainForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(284, 262);
            this.Controls.Add(this.btnMVP);
            this.Controls.Add(this.btnMVC);
            this.Name = "MainForm";
            this.Text = "MainForm";
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.Button btnMVC;
        private System.Windows.Forms.Button btnMVP;
    }
}

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

John T.Emmatty
Software Developer (Senior) WEPA
India India
My aim is to write articles in plain English without any convoluted or periphrastic statements.
Follow on   Twitter

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.1411023.1 | Last Updated 23 Nov 2011
Article Copyright 2011 by John T.Emmatty
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid