public Gestions_Produit() { InitializeComponent(); if (frmGP == null) { frmGP = this; } this.dataGridView1.DataSource = prd.All_Product(); }
static void frm_FormClosed(object sender, FormClosedEventArgs e) { frmGP = null; }
private void btnGP_Click(object sender, EventArgs e) { Gestions_Produit frm = new Gestions_Produit(); frm.ShowDialog(); }