private void btn_AddEmployee_Click(object sender, EventArgs e)
        {
            clsGLobalVariables.method = "add";
            frmAgentAdd frmAgentAdd = new frmAgentAdd();

            frmAgentAdd.Show();
            this.Close();
        }
 private void btn_EditEmployee_Click(object sender, EventArgs e)
 {
     clsGLobalVariables.method = "edit";
     try
     {
         clsGLobalVariables.Id = dataAgentView.SelectedRows[0].Cells[1].Value.ToString();
         frmAgentAdd frmAgentAdd = new frmAgentAdd();
         frmAgentAdd.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Please Select the Row of Agent you want to edit", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     this.Close();
 }