Exemple #1
0
 public VWelcome(ModelArtGallery model)
 {
     InitializeComponent();
     this.model = model;
     controller = new CWelcome(this);
     this.model.Attach(this);
     this.model.Attach(controller);
     updateLanguage();
 }
Exemple #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //CVizitator cVizitator = new CVizitator();
            //Application.Run(cVizitator.GetVWelcome());
            CWelcome cWelcome = new CWelcome();

            Application.Run(cWelcome.GetVWelcome());
        }
Exemple #3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //model
            ModelArtGallery model = new ModelArtGallery();
            //view
            VWelcome vWelcome = new VWelcome(model);
            //controller
            CWelcome cWelcome = vWelcome.GetCWelcome();

            //pass the view of the controller
            Application.Run(cWelcome.GetVWelcome());
        }