private void btnEditClient_Click(object sender, EventArgs e) { if (selectedRow == null) { MessageBox.Show("يجب اختيار قريه للتعديل اولا", "خطأ", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { ClientsForm clientsForm = new ClientsForm(user, null, this, selectedRow, false); clientsForm.ShowDialog(); } }
private void btnAddClient_Click(object sender, EventArgs e) { ClientsForm clientsForm = new ClientsForm(user, null, this, selectedRow, true); clientsForm.ShowDialog(); }