private void musterGuncelleToolStripMenuItem_Click(object sender, EventArgs e) { CustomerUpdateForm customerUpdateForm = new CustomerUpdateForm(_customer); customerUpdateForm.WindowState = System.Windows.Forms.FormWindowState.Maximized; customerUpdateForm.MdiParent = this; customerUpdateForm.Show(); }
private void btnUpdate_Click(object sender, EventArgs e) { try { if (lstCustomerView.SelectedItems[0].Tag != null) { _customer = (Customer)lstCustomerView.SelectedItems[0].Tag; CustomerUpdateForm cstUpdateForm = new CustomerUpdateForm(_customer); cstUpdateForm.MdiParent = this.MdiParent; cstUpdateForm.Show(); this.Close(); } } catch (Exception) { MessageBox.Show("Herhangi bir kayıt seçmediniz", "Bilgilendirme Penceresi", MessageBoxButtons.OK, MessageBoxIcon.Error); } }