Changeset 17274
- Timestamp:
- 09/26/19 16:54:12 (5 years ago)
- Location:
- trunk/HeuristicLab.Clients.Hive.Administrator/3.3/Views
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectView.Designer.cs
r17268 r17274 220 220 this.Name = "ProjectView"; 221 221 this.Size = new System.Drawing.Size(539, 271); 222 this.Load += new System.EventHandler(this.ProjectView_Load); 222 223 this.ResumeLayout(false); 223 224 this.PerformLayout(); -
trunk/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectView.cs
r17273 r17274 44 44 AccessClient.Instance.Refreshing += AccessClient_Instance_Refreshing; 45 45 AccessClient.Instance.Refreshed += AccessClient_Instance_Refreshed; 46 47 UpdateUsers();48 46 } 49 47 … … 78 76 nameTextBox.Text = Content.Name; 79 77 descriptionTextBox.Text = Content.Description; 80 ownerComboBox.SelectedItem = AccessClient.Instance.UsersAndGroups .OfType<LightweightUser>().SingleOrDefault(x => x.Id == Content.OwnerUserId);78 ownerComboBox.SelectedItem = AccessClient.Instance.UsersAndGroups?.OfType<LightweightUser>().SingleOrDefault(x => x.Id == Content.OwnerUserId); 81 79 createdTextBox.Text = Content.DateCreated.ToString("ddd, dd.MM.yyyy, HH:mm:ss"); 82 80 startDateTimePicker.Value = Content.StartDate; … … 146 144 147 145 #region Event Handlers 146 private void ProjectView_Load(object sender, EventArgs e) { 147 Locked = true; 148 try { 149 UpdateUsers(); 150 UpdateView(); 151 } finally { 152 Locked = false; 153 } 154 } 155 148 156 private void Content_PropertyChanged(object sender, PropertyChangedEventArgs e) { 149 157 UpdateView(); … … 175 183 176 184 Content.OwnerUserId = selectedOwnerUserId; 185 } 186 187 private async void refreshButton_Click(object sender, EventArgs e) { 188 Locked = true; 189 try { 190 await UpdateUsersAsync(); 191 UpdateView(); 192 } finally { 193 Locked = false; 194 } 177 195 } 178 196 … … 260 278 } 261 279 #endregion 262 263 private async void refreshButton_Click(object sender, EventArgs e) {264 Locked = true;265 try {266 await UpdateUsersAsync();267 UpdateView();268 } finally {269 Locked = false;270 }271 }272 280 } 273 281 }
Note: See TracChangeset
for help on using the changeset viewer.