예제 #1
0
 private void EditDeptBtn_Click(object sender, EventArgs e)
 {
     if (DeptsListView.SelectedIndices.Count == 1)
     {
         var selDept = DeptsProc.Result[DeptsListView.SelectedIndices[0]];
         var DeptPP = new DepartmentPP(Database.Connection, GetValidDeptManagers(), selDept, FindDepartmentManager(selDept.DepartmentId), this);
         DeptPP.Show();
     }
 }
예제 #2
0
 private void AddDeptBtn_Click(object sender, EventArgs e)
 {
     var DeptPP = new DepartmentPP(Database.Connection,GetValidDeptManagers(),this);
     DeptPP.Show();
 }