Ejemplo n.º 1
0
 private void bt_addDept_Click(object sender, EventArgs e)
 {
     DeptEditor form = new DeptEditor();
     form.ShowDialog();
     loadDeptList();
 }
Ejemplo n.º 2
0
 private void bt_updateDept_Click(object sender, EventArgs e)
 {
     if (lb_dept.SelectedIndex != -1)
     {
         string[] mas = new string[3];
         mas[0] = deptList[lb_dept.SelectedIndex].id.ToString();
         mas[1] = deptList[lb_dept.SelectedIndex].title.ToString();
         mas[2] = deptList[lb_dept.SelectedIndex].description.ToString();
         DeptEditor form = new DeptEditor(mas);
         form.ShowDialog();
         loadDeptList();
     }
 }