Changeset 16060 for branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views
- Timestamp:
- 08/07/18 15:34:23 (6 years ago)
- Location:
- branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectJobsView.Designer.cs
r15966 r16060 19 19 */ 20 20 #endregion 21 21 22 using HeuristicLab.Data.Views; 22 using System;23 23 24 24 namespace HeuristicLab.Clients.Hive.Administrator.Views { … … 48 48 private void InitializeComponent() { 49 49 this.components = new System.ComponentModel.Container(); 50 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ProjectJobsView));51 50 this.refreshButton = new System.Windows.Forms.Button(); 52 51 this.removeButton = new System.Windows.Forms.Button(); … … 57 56 // refreshButton 58 57 // 59 this.refreshButton.Image = ((System.Drawing.Image)(resources.GetObject("refreshButton.Image")));58 this.refreshButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Refresh; 60 59 this.refreshButton.Location = new System.Drawing.Point(3, 3); 61 60 this.refreshButton.Name = "refreshButton"; … … 68 67 // removeButton 69 68 // 70 this.removeButton.Image = ((System.Drawing.Image)(resources.GetObject("removeButton.Image")));69 this.removeButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Remove; 71 70 this.removeButton.Location = new System.Drawing.Point(33, 3); 72 71 this.removeButton.Name = "removeButton"; … … 79 78 // matrixView 80 79 // 81 this.matrixView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 82 | System.Windows.Forms.AnchorStyles.Left) 80 this.matrixView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 81 | System.Windows.Forms.AnchorStyles.Left) 83 82 | System.Windows.Forms.AnchorStyles.Right))); 84 83 this.matrixView.Caption = "StringConvertibleMatrix View"; -
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectView.cs
r16043 r16060 28 28 using HeuristicLab.Core.Views; 29 29 using HeuristicLab.MainForm; 30 using System.Drawing;31 30 32 31 namespace HeuristicLab.Clients.Hive.Administrator.Views { … … 115 114 116 115 indefiniteCheckBox.Checked = !Content.EndDate.HasValue; 117 if (!indefiniteCheckBox.Checked) endDateTimePicker.Value = Content.EndDate.Value;116 if (!indefiniteCheckBox.Checked) endDateTimePicker.Value = Content.EndDate.Value; 118 117 else endDateTimePicker.Value = Content.StartDate; 119 118 endDateTimePicker.Enabled = !indefiniteCheckBox.Checked; … … 134 133 indefiniteCheckBox.Enabled = enabled; 135 134 136 if (Content != null) {135 if (Content != null) { 137 136 var parentProject = HiveAdminClient.Instance.GetAvailableProjectAncestors(Content.Id).LastOrDefault(); 138 137 if (parentProject == null || parentProject.EndDate.HasValue) { … … 152 151 #region Event Handlers 153 152 private void Content_PropertyChanged(object sender, PropertyChangedEventArgs e) { 154 OnContentChanged(); 153 if (InvokeRequired) Invoke((Action<object, PropertyChangedEventArgs>)Content_PropertyChanged, sender, e); 154 else OnContentChanged(); 155 155 } 156 156 … … 220 220 Content.Name = nameTextBox.Text; 221 221 RegisterContentEvents(); 222 } 222 } 223 223 } 224 224 … … 228 228 Content.Description = descriptionTextBox.Text; 229 229 RegisterContentEvents(); 230 } 230 } 231 231 } 232 232 … … 238 238 Content.OwnerUserId = selectedOwnerUserId; 239 239 RegisterContentEvents(); 240 } 240 } 241 241 } 242 242 … … 248 248 var parentProject = HiveAdminClient.Instance.GetAvailableProjectAncestors(Content.Id).LastOrDefault(); 249 249 if (parentProject != null) { 250 if (startDateTimePicker.Value < parentProject.StartDate)250 if (startDateTimePicker.Value < parentProject.StartDate) 251 251 startDateTimePicker.Value = parentProject.StartDate; 252 252 } else { … … 261 261 Content.StartDate = startDateTimePicker.Value; 262 262 RegisterContentEvents(); 263 } 263 } 264 264 265 265 startDateTimePicker.ValueChanged += startDateTimePicker_ValueChanged; … … 276 276 endDateTimePicker.Value = parentProject.EndDate.Value; 277 277 } 278 } else if (Content.EndDate.HasValue) {278 } else if (Content.EndDate.HasValue) { 279 279 endDateTimePicker.Value = Content.EndDate.Value; 280 280 } … … 287 287 Content.EndDate = endDateTimePicker.Value; 288 288 RegisterContentEvents(); 289 } 289 } 290 290 291 291 endDateTimePicker.ValueChanged += endDateTimePicker_ValueChanged;
Note: See TracChangeset
for help on using the changeset viewer.