Click here to Skip to main content
12,448,563 members (56,158 online)
Click here to Skip to main content

Tagged as

Stats

591K views
16.8K downloads
70 bookmarked
Posted

Simple Example of MVC (Model View Controller) Design Pattern for Abstraction

, 8 Apr 2008 CPOL
Simple example of MVC (Model View Controller) design pattern for abstraction
MVCExample
MVCExample
MVCExample.suo
MVCExample
bin
Debug
MVCExample.exe
MVCExample.vshost.exe
Properties
using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace MVCExample
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            frmCalcView view = new frmCalcView();
            CalculatorModel model = new CalculatorModel();
            CalcController controller = new CalcController(model, view);

            Application.Run(view);
        }
    }
}

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

rj45
Software Developer (Senior)
Canada Canada
No Biography provided

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160811.3 | Last Updated 8 Apr 2008
Article Copyright 2008 by rj45
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid