private void siparisListesiToolStripMenuItem_Click(object sender, EventArgs e) { if (orderListFrm == null || orderListFrm.IsDisposed == true) { CloseForm(); orderListFrm = new OrderListFrm(); FormBoyutlandir(orderListFrm.Width, orderListFrm.Height); orderListFrm.MdiParent = this; orderListFrm.FormClosed += OrderListFrm_FormClosed;; orderListFrm.WindowState = FormWindowState.Maximized; orderListFrm.Show(); } else { orderListFrm.Activate(); } }
private void OrderListFrm_FormClosed(object sender, FormClosedEventArgs e) { orderListFrm = null; }