public VWelcome(ModelArtGallery model) { InitializeComponent(); this.model = model; controller = new CWelcome(this); this.model.Attach(this); this.model.Attach(controller); updateLanguage(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //CVizitator cVizitator = new CVizitator(); //Application.Run(cVizitator.GetVWelcome()); CWelcome cWelcome = new CWelcome(); Application.Run(cWelcome.GetVWelcome()); }
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()); }