public static void InitializeDepartments() { List <Department> departmentList = HospitalDB.FetchDepartments(); foreach (Department department in departmentList) { if (department != null) { Departments.Add(department.ID, department); } } }