private void customerToolStripMenuItem_Click(object sender, EventArgs e) { CustomerListForm customerlistform = new CustomerListForm(); customerlistform.MdiParent = this; customerlistform.Show(); }
private void customerToolStripMenuItem_Click(object sender, EventArgs e) { _customerListForm = new CustomerListForm { WindowState = FormWindowState.Maximized, MdiParent = this }; _customerListForm.Show(); }
private void müşterileriListeleToolStripMenuItem_Click(object sender, EventArgs e) { bool isOpen = false; foreach (Form item in this.MdiChildren) { if (item is CustomerListForm) { isOpen = true; } } if (isOpen == true) { clf.BringToFront(); } else { clf = new CustomerListForm(); clf.MdiParent = this; clf.Show(); } }