public FRM_PRODUCT() { InitializeComponent(); // code to update for in aanother form if (frm == null) { frm = this; } this.dataGridView1.DataSource = prd.GET_ALL_PRODUCTS(); }
private void ادارةالمنتوجاتToolStripMenuItem_Click(object sender, EventArgs e) { FRM_PRODUCT frm = new FRM_PRODUCT(); frm.ShowDialog(); }
static void frm_FormClosed(object sender, FormClosedEventArgs e) { frm = null; }