예제 #1
0
파일: DeptList.cs 프로젝트: Alexcey/dd
 private void bt_addDept_Click(object sender, EventArgs e)
 {
     DeptEditor form = new DeptEditor();
     form.ShowDialog();
     loadDeptList();
 }
예제 #2
0
파일: DeptList.cs 프로젝트: Alexcey/dd
 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();
     }
 }