示例#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();
     }
 }