static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Application.Run(new Fenetre_gestion()); ctrlPrincipal _cp = new ctrlPrincipal(); while (_cp.encours == true) { Application.DoEvents(); } }
public ctrlVues(ctrlPrincipal ctrl) { this._ctrl = ctrl; this._fg = new Fenetre_gestion(this); this._fp = new Fenetre_panier(this); this._fc = new Fenetre_client(this); this._fa = new Fenetre_article(this); this._fg.Text = "Fenetre de Gestion (Copyright CA-JAM 2018)"; this._fp.Text = "Fenetre de Gestion du Panier (Copyright CA-JAM 2018)"; this._fc.Text = "Fenetre de Gestion des Clients (Copyright CA-JAM 2018)"; this._fa.Text = "Fenetre d'information sur les articles (Copyright CA-JAM 2018)"; PositionForm(this._fg, 20, 50); PositionForm(this._fp, this._fg.Top, this._fg.Right); PositionForm(this._fc, this._fp.Top, this._fp.Right); PositionForm(this._fa, this._fp.Bottom, this._fp.Left); this._fg.Show(); }