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(); } }
private void AddDeptBtn_Click(object sender, EventArgs e) { var DeptPP = new DepartmentPP(Database.Connection,GetValidDeptManagers(),this); DeptPP.Show(); }