コード例 #1
0
 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();
     }
 }
コード例 #2
0
        private void btnAddClient_Click(object sender, EventArgs e)
        {
            ClientsForm clientsForm = new ClientsForm(user, null, this, selectedRow, true);

            clientsForm.ShowDialog();
        }