コード例 #1
0
        private void btn_AddClient_Click(object sender, EventArgs e)
        {
            clsGLobalVariables.method = "add";
            frmClient frmClientAdd = new frmClient();

            frmClientAdd.Show();
            this.Close();
        }
コード例 #2
0
 private void btn_EditClient_Click(object sender, EventArgs e)
 {
     try
     {
         clsGLobalVariables.method = "edit";
         clsGLobalVariables.Id     = dataResultClient.SelectedRows[0].Cells[0].Value.ToString();
         frmClient frmClientAdd = new frmClient();
         frmClientAdd.Show();
     }
     catch
     {
         MessageBox.Show("Please Select the Row of Client you want to edit", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     this.Close();
 }