Changeset 16427 for trunk/HeuristicLab.Clients.Hive.Administrator/3.3/Views
- Timestamp:
- 12/21/18 09:50:22 (6 years ago)
- Location:
- trunk/HeuristicLab.Clients.Hive.Administrator/3.3/Views
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectPermissionsView.Designer.cs
r16117 r16427 112 112 this.permissionsGroupBox.TabIndex = 4; 113 113 this.permissionsGroupBox.TabStop = false; 114 this.permissionsGroupBox.Text = " Permissions (Assigned + Included)";114 this.permissionsGroupBox.Text = "Compute Permissions (Assigned + Included)"; 115 115 // 116 116 // treeView -
trunk/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectView.Designer.cs
r16117 r16427 39 39 this.endLabel = new System.Windows.Forms.Label(); 40 40 this.indefiniteCheckBox = new System.Windows.Forms.CheckBox(); 41 this.createdTextBox = new System.Windows.Forms.TextBox(); 42 this.refreshButton = new System.Windows.Forms.Button(); 41 this.createdTextBox = new System.Windows.Forms.TextBox(); 43 42 this.toolTip = new System.Windows.Forms.ToolTip(this.components); 44 43 this.SuspendLayout(); … … 124 123 this.ownerComboBox.SelectedIndexChanged += new System.EventHandler(this.ownerComboBox_SelectedIndexChanged); 125 124 // 126 // refreshButton127 //128 this.refreshButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Refresh;129 this.refreshButton.Location = new System.Drawing.Point(278, 162);130 this.refreshButton.Name = "refreshButton";131 this.refreshButton.Size = new System.Drawing.Size(24, 24);132 this.refreshButton.TabIndex = 5;133 this.toolTip.SetToolTip(this.refreshButton, "Refresh data");134 this.refreshButton.UseVisualStyleBackColor = true;135 this.refreshButton.Click += new System.EventHandler(this.refreshButton_Click);136 //137 125 // createdLabel 138 126 // … … 207 195 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 208 196 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 209 this.Controls.Add(this.refreshButton);210 197 this.Controls.Add(this.createdTextBox); 211 198 this.Controls.Add(this.indefiniteCheckBox); … … 247 234 private System.Windows.Forms.Label endLabel; 248 235 private System.Windows.Forms.CheckBox indefiniteCheckBox; 249 private System.Windows.Forms.TextBox createdTextBox; 250 private System.Windows.Forms.Button refreshButton; 236 private System.Windows.Forms.TextBox createdTextBox; 251 237 private System.Windows.Forms.ToolTip toolTip; 252 238 } -
trunk/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectView.cs
r16202 r16427 126 126 bool enabled = Content != null && !Locked && !ReadOnly; 127 127 nameTextBox.Enabled = enabled; 128 descriptionTextBox.Enabled = enabled; 129 refreshButton.Enabled = enabled; 128 descriptionTextBox.Enabled = enabled; 130 129 ownerComboBox.Enabled = enabled; 131 130 createdTextBox.Enabled = enabled; … … 188 187 } 189 188 190 private async void refreshButton_Click(object sender, EventArgs e) {191 lock (locker) {192 if (!refreshButton.Enabled) return;193 refreshButton.Enabled = false;194 }195 196 await SecurityExceptionUtil.TryAsyncAndReportSecurityExceptions(197 action: () => UpdateUsers(),198 finallyCallback: () => {199 ownerComboBox.SelectedIndexChanged -= ownerComboBox_SelectedIndexChanged;200 var users = AccessClient.Instance.UsersAndGroups.OfType<LightweightUser>();201 if (Content != null && !Content.ParentProjectId.HasValue) users = users.Where(x => x.Roles.Select(y => y.Name).Contains(HiveRoles.Administrator));202 ownerComboBox.DataSource = users.ToList();203 ownerComboBox.SelectedItem = users.FirstOrDefault(x => x.Id == persistedOwnerUserId);204 ownerComboBox.SelectedIndexChanged += ownerComboBox_SelectedIndexChanged;205 refreshButton.Enabled = true;206 });207 }208 209 189 private void nameTextBox_Validating(object sender, CancelEventArgs e) { 210 190 if (string.IsNullOrEmpty(nameTextBox.Text)) { -
trunk/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectsView.Designer.cs
r16117 r16427 194 194 this.permissionsTabPage.Size = new System.Drawing.Size(577, 515); 195 195 this.permissionsTabPage.TabIndex = 1; 196 this.permissionsTabPage.Text = " Permissions";196 this.permissionsTabPage.Text = "Compute Permissions"; 197 197 this.permissionsTabPage.UseVisualStyleBackColor = true; 198 198 //
Note: See TracChangeset
for help on using the changeset viewer.