Click here to Skip to main content
12,952,778 members (33,469 online)
Click here to Skip to main content

Tagged as


123 bookmarked
Posted 23 Nov 2011

Differences between MVC and MVP for Beginners

, 23 Nov 2011 CPOL
This article aims to describe MVC and MVP in simple terms
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MVPTester

    public partial class MVPView : Form,IStudentView
        Presenter _presenter;
        public MVPView()

            _presenter = new Presenter(new Model(), this);

        private void button1_Click(object sender, EventArgs e)

            bool b = _presenter.IsEntryExisting(UserName);
            if (!b)
                _presenter.Save(UserName, Email);
                MessageBox.Show("Entry already existing.");

        public string UserName
            get { return this.txtName.Text; }
            set { this.txtName.Text = value; }

        public string Email
            get { return this.txtEmail.Text; }
            set { this.txtEmail.Text = value; }


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.


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


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.

You may also be interested in...

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