Changeset 15966 for branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectsView.cs
- Timestamp:
- 06/19/18 15:51:41 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectsView.cs
r15953 r15966 100 100 projectPermissionsView.Content = null; 101 101 projectResourcesView.Content = null; 102 projectJobsView.Content = null; 102 103 } else { 103 104 BuildProjectTree(Content); … … 115 116 projectPermissionsView.Enabled = enabled; 116 117 projectResourcesView.Enabled = enabled; 118 projectJobsView.Enabled = enabled; 117 119 } 118 120 #endregion … … 228 230 MessageBox.Show( 229 231 "Only empty projects can be deleted.", 232 "HeuristicLab Hive Administrator", 233 MessageBoxButtons.OK, 234 MessageBoxIcon.Error); 235 return; 236 } 237 238 if (HiveAdminClient.Instance.Jobs.ContainsKey(selectedProject.Id) 239 && HiveAdminClient.Instance.Jobs[selectedProject.Id] != null 240 && HiveAdminClient.Instance.Jobs[selectedProject.Id].Any()) { 241 MessageBox.Show( 242 "There are " + HiveAdminClient.Instance.Jobs[selectedProject.Id].Count + " jobs using this project and/or child-projects. It is necessary to delete them before the project.", 230 243 "HeuristicLab Hive Administrator", 231 244 MessageBoxButtons.OK, … … 442 455 projectPermissionsView.Content = project; 443 456 projectResourcesView.Content = project; 457 projectJobsView.Content = project; 444 458 445 459 bool projectIsNew = project != null && project.Id == Guid.Empty; … … 454 468 projectPermissionsView.Locked = locked; 455 469 projectResourcesView.Locked = locked; 470 projectJobsView.Locked = locked; 456 471 selectedProject = project; 457 472 }
Note: See TracChangeset
for help on using the changeset viewer.