private void LoadDepartments() { departments = QDepartments.SelectItems(); foreach (Department department in departments) { view.AddDepartmentToComboBox(department); } }
public void LoadView() { this.departments = QDepartments.SelectItems(); this.directors = QUsers.SelectUsersByRoleID(UserRoles.DepartmentDirector); AddDepartmentsToView(); AddDirectorsToView(); RefreshDepartmentDirectors(); }
public override void LoadView() { departments.Clear(); view.ClearView(); IList columns = new ArrayList() { "ID", "Department", "Active" }; this.view.AddListViewColumns(columns); this.view.ListTitle = "Departments"; departments = QDepartments.SelectItems(); AddDepartmentListToView(); SetColumnsHeaderSize(); }