private void urunEkleToolStripMenuItem_Click(object sender, EventArgs e) { if (productAddUpdateFrm == null || productAddUpdateFrm.IsDisposed == true) { CloseForm(); productAddUpdateFrm = new ProductAddUpdateFrm(); productAddUpdateFrm.MdiParent = this; var t = this.MdiChildren; productAddUpdateFrm.FormClosed += ProductAddUpdate_FormClosed; FormBoyutlandir(productAddUpdateFrm.Width, productAddUpdateFrm.Height); productAddUpdateFrm.WindowState = FormWindowState.Maximized; productAddUpdateFrm.Show(); } else { productAddUpdateFrm.Activate(); } }
private void ProductAddUpdate_FormClosed(object sender, FormClosedEventArgs e) { productAddUpdateFrm = null; }