Beispiel #1
0
 private void btn_Creat_Click(object sender, EventArgs e)
 {
     this.Hide();
     VariableGlobal.staff_type_id = 0;
     FrmStaffType staff_type = new FrmStaffType();
     staff_type.Show();
 }
Beispiel #2
0
 private void btn_Edit_Click(object sender, EventArgs e)
 {
     foreach (DataGridViewRow item in this.dataGridViewX1.SelectedRows)
     {
         if (item.Cells[1].Value != null)
         {
             this.Hide();
             VariableGlobal.staff_type_id = Convert.ToInt32(item.Cells[3].Value.ToString());
             FrmStaffType staff_type = new FrmStaffType();
             staff_type.Show();
         }
     }
 }