Changeset 15992 for branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.JobManager/3.3/Views
- Timestamp:
- 07/10/18 23:06:00 (7 years ago)
- Location:
- branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.JobManager/3.3/Views
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveResourceSelector.cs
r15978 r15992 43 43 public const string additionalSlavesGroupDescription = "Contains additional slaves which are either ungrouped or the parenting slave group is not assigned to the selected project."; 44 44 45 private const string CURRENT_SELECTION_TAG = " [current selection]";46 private const string NEW_SELECTION_TAG = " [new selection]";47 private const string CHANGED_SELECTION_TAG = " [changed selection]";48 private const string ADDED_SELECTION_TAG = " [added selection]";49 private const string REMOVED_SELECTION_TAG = " [removed selection]";50 private const string SELECTED_TAG = " [ selected]";45 private const string CURRENT_SELECTION_TAG = " [current assignment]"; 46 private const string NEW_SELECTION_TAG = " [new assignment]"; 47 private const string CHANGED_SELECTION_TAG = " [changed assignment]"; 48 private const string ADDED_SELECTION_TAG = " [added assignment]"; 49 private const string REMOVED_SELECTION_TAG = " [removed assignment]"; 50 private const string SELECTED_TAG = " [assigned]"; 51 51 private const string INCLUDED_TAG = " [included]"; 52 52 private const string ADDED_INCLUDE_TAG = " [added include]"; -
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobListView.cs
r14185 r15992 41 41 this.itemsListView.Columns.Add(new ColumnHeader("Date") { Text = "Date" }); 42 42 this.itemsListView.Columns.Add(new ColumnHeader("Name") { Text = "Name" }); 43 this.itemsListView.Columns.Add(new ColumnHeader("Project") { Text = "Project" }); 43 44 44 45 this.itemsListView.HeaderStyle = ColumnHeaderStyle.Clickable; 45 46 this.itemsListView.FullRowSelect = true; 46 47 47 this.itemsListView.ListViewItemSorter = new ListViewItemDateComparer(0, SortOrder.Ascending); 48 this.itemsListView.ListViewItemSorter = new ListViewItemComparer(new int[] { 2, 0 }, new SortOrder[] { SortOrder.Ascending, SortOrder.Ascending }); 49 50 foreach (ColumnHeader c in this.itemsListView.Columns) { 51 c.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); 52 int w = c.Width; 53 c.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); 54 if(w > c.Width) { 55 c.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); 56 } 57 } 48 58 } 49 59 50 60 protected override void SortItemsListView(SortOrder sortOrder) { 51 61 if (itemsListView.Sorting == sortOrder || sortOrder == SortOrder.None) return; 52 ((ListViewItem DateComparer)itemsListView.ListViewItemSorter).Order= sortOrder;62 ((ListViewItemComparer)itemsListView.ListViewItemSorter).Orders[1] = sortOrder; 53 63 itemsListView.Sorting = sortOrder; 54 64 itemsListView.Sort(); 55 AdjustListViewColumnSizes();65 //AdjustListViewColumnSizes(); 56 66 } 57 67 … … 133 143 base.Content_ItemsAdded(sender, e); 134 144 foreach (ColumnHeader c in this.itemsListView.Columns) { 145 c.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); 146 int w = c.Width; 135 147 c.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); 148 if (w > c.Width) { 149 c.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); 150 } 136 151 } 137 152 foreach (var item in e.Items) { … … 180 195 listViewItem.SubItems.Insert(0, new ListViewItem.ListViewSubItem(listViewItem, item.Job.DateCreated.ToString())); 181 196 listViewItem.SubItems.Insert(1, new ListViewItem.ListViewSubItem(listViewItem, item.Job.Name)); 197 listViewItem.SubItems.Insert(2, new ListViewItem.ListViewSubItem(listViewItem, HiveClient.Instance.GetProjectAncestry(item.Job.ProjectId))); 198 182 199 listViewItem.Group = GetListViewGroup(item.Job.OwnerUsername); 183 200 return listViewItem; … … 189 206 listViewItem.SubItems[0].Text = item == null ? "null" : item.Job.DateCreated.ToString("dd.MM.yyyy HH:mm"); 190 207 listViewItem.SubItems[1].Text = item == null ? "null" : item.Job.Name; 208 listViewItem.SubItems[2].Text = item == null ? "null" : HiveClient.Instance.GetProjectAncestry(item.Job.ProjectId); 191 209 listViewItem.Group = GetListViewGroup(item.Job.OwnerUsername); 192 210 listViewItem.ToolTipText = item == null ? string.Empty : item.ItemName + ": " + item.ItemDescription; -
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.Designer.cs
r15953 r15992 46 46 private void InitializeComponent() { 47 47 this.components = new System.ComponentModel.Container(); 48 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RefreshableHiveJobView)); 48 49 this.tabControl = new HeuristicLab.MainForm.WindowsForms.DragOverTabControl(); 49 50 this.tasksTabPage = new System.Windows.Forms.TabPage(); … … 51 52 this.permissionTabPage = new System.Windows.Forms.TabPage(); 52 53 this.refreshPermissionsButton = new System.Windows.Forms.Button(); 54 this.hiveExperimentPermissionListView = new HeuristicLab.Clients.Hive.JobManager.Views.HiveJobPermissionListView(); 53 55 this.runsTabPage = new System.Windows.Forms.TabPage(); 54 56 this.runCollectionViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost(); … … 66 68 this.nameLabel = new System.Windows.Forms.Label(); 67 69 this.nameTextBox = new System.Windows.Forms.TextBox(); 70 this.descriptionLabel = new System.Windows.Forms.Label(); 71 this.descriptionTextBox = new System.Windows.Forms.TextBox(); 68 72 this.toolTip = new System.Windows.Forms.ToolTip(this.components); 69 73 this.refreshButton = new System.Windows.Forms.Button(); 70 74 this.updateButton = new System.Windows.Forms.Button(); 71 75 this.UnloadButton = new System.Windows.Forms.Button(); 76 this.searchButton = new System.Windows.Forms.Button(); 72 77 this.refreshAutomaticallyCheckBox = new System.Windows.Forms.CheckBox(); 73 78 this.infoGroupBox = new System.Windows.Forms.GroupBox(); … … 78 83 this.calculatingLabel = new System.Windows.Forms.Label(); 79 84 this.jobsLabel = new System.Windows.Forms.Label(); 80 this.searchButton = new System.Windows.Forms.Button();81 this.hiveExperimentPermissionListView = new HeuristicLab.Clients.Hive.JobManager.Views.HiveJobPermissionListView();82 85 this.tabControl.SuspendLayout(); 83 86 this.tasksTabPage.SuspendLayout(); … … 100 103 this.tabControl.Controls.Add(this.stateTabPage); 101 104 this.tabControl.Controls.Add(this.logTabPage); 102 this.tabControl.Location = new System.Drawing.Point(0, 78);105 this.tabControl.Location = new System.Drawing.Point(0, 106); 103 106 this.tabControl.Name = "tabControl"; 104 107 this.tabControl.SelectedIndex = 0; … … 147 150 // refreshPermissionsButton 148 151 // 149 this.refreshPermissionsButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Refresh;152 this.refreshPermissionsButton.Image = ((System.Drawing.Image)(resources.GetObject("refreshPermissionsButton.Image"))); 150 153 this.refreshPermissionsButton.Location = new System.Drawing.Point(3, 3); 151 154 this.refreshPermissionsButton.Name = "refreshPermissionsButton"; … … 155 158 this.refreshPermissionsButton.UseVisualStyleBackColor = true; 156 159 this.refreshPermissionsButton.Click += new System.EventHandler(this.refreshPermissionsButton_Click); 160 // 161 // hiveExperimentPermissionListView 162 // 163 this.hiveExperimentPermissionListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 164 | System.Windows.Forms.AnchorStyles.Left) 165 | System.Windows.Forms.AnchorStyles.Right))); 166 this.hiveExperimentPermissionListView.Caption = "HiveExperimentPermissionList View"; 167 this.hiveExperimentPermissionListView.Content = null; 168 this.hiveExperimentPermissionListView.HiveExperimentId = new System.Guid("00000000-0000-0000-0000-000000000000"); 169 this.hiveExperimentPermissionListView.Location = new System.Drawing.Point(3, 33); 170 this.hiveExperimentPermissionListView.Name = "hiveExperimentPermissionListView"; 171 this.hiveExperimentPermissionListView.ReadOnly = false; 172 this.hiveExperimentPermissionListView.ShowDetails = true; 173 this.hiveExperimentPermissionListView.Size = new System.Drawing.Size(703, 390); 174 this.hiveExperimentPermissionListView.TabIndex = 0; 157 175 // 158 176 // runsTabPage … … 235 253 // 236 254 this.startButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 237 this.startButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Play;238 this.startButton.Location = new System.Drawing.Point(0, 5 36);255 this.startButton.Image = ((System.Drawing.Image)(resources.GetObject("startButton.Image"))); 256 this.startButton.Location = new System.Drawing.Point(0, 564); 239 257 this.startButton.Name = "startButton"; 240 258 this.startButton.Size = new System.Drawing.Size(24, 24); 241 this.startButton.TabIndex = 5;259 this.startButton.TabIndex = 4; 242 260 this.toolTip.SetToolTip(this.startButton, "Start/Resume Experiment"); 243 261 this.startButton.UseVisualStyleBackColor = true; … … 247 265 // 248 266 this.stopButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 249 this.stopButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Stop;250 this.stopButton.Location = new System.Drawing.Point(60, 5 36);267 this.stopButton.Image = ((System.Drawing.Image)(resources.GetObject("stopButton.Image"))); 268 this.stopButton.Location = new System.Drawing.Point(60, 564); 251 269 this.stopButton.Name = "stopButton"; 252 270 this.stopButton.Size = new System.Drawing.Size(24, 24); 253 this.stopButton.TabIndex = 7;271 this.stopButton.TabIndex = 6; 254 272 this.toolTip.SetToolTip(this.stopButton, "Stop Experiment"); 255 273 this.stopButton.UseVisualStyleBackColor = true; … … 260 278 this.executionTimeLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 261 279 this.executionTimeLabel.AutoSize = true; 262 this.executionTimeLabel.Location = new System.Drawing.Point(491, 5 43);280 this.executionTimeLabel.Location = new System.Drawing.Point(491, 571); 263 281 this.executionTimeLabel.Name = "executionTimeLabel"; 264 282 this.executionTimeLabel.Size = new System.Drawing.Size(83, 13); 265 this.executionTimeLabel.TabIndex = 9;283 this.executionTimeLabel.TabIndex = 100; 266 284 this.executionTimeLabel.Text = "&Execution Time:"; 267 285 // … … 269 287 // 270 288 this.executionTimeTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 271 this.executionTimeTextBox.Location = new System.Drawing.Point(580, 5 40);289 this.executionTimeTextBox.Location = new System.Drawing.Point(580, 568); 272 290 this.executionTimeTextBox.Name = "executionTimeTextBox"; 273 291 this.executionTimeTextBox.ReadOnly = true; 274 292 this.executionTimeTextBox.Size = new System.Drawing.Size(137, 20); 275 this.executionTimeTextBox.TabIndex = 10 ;293 this.executionTimeTextBox.TabIndex = 100; 276 294 // 277 295 // pauseButton … … 279 297 this.pauseButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 280 298 this.pauseButton.Enabled = false; 281 this.pauseButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Pause;282 this.pauseButton.Location = new System.Drawing.Point(30, 5 36);299 this.pauseButton.Image = ((System.Drawing.Image)(resources.GetObject("pauseButton.Image"))); 300 this.pauseButton.Location = new System.Drawing.Point(30, 564); 283 301 this.pauseButton.Name = "pauseButton"; 284 302 this.pauseButton.Size = new System.Drawing.Size(24, 24); 285 this.pauseButton.TabIndex = 6;303 this.pauseButton.TabIndex = 5; 286 304 this.toolTip.SetToolTip(this.pauseButton, "Pause Experiment"); 287 305 this.pauseButton.UseVisualStyleBackColor = true; … … 291 309 // 292 310 this.projectLabel.AutoSize = true; 293 this.projectLabel.Location = new System.Drawing.Point(3, 56);311 this.projectLabel.Location = new System.Drawing.Point(3, 83); 294 312 this.projectLabel.Name = "projectLabel"; 295 313 this.projectLabel.Size = new System.Drawing.Size(43, 13); 296 this.projectLabel.TabIndex = 1 2;314 this.projectLabel.TabIndex = 100; 297 315 this.projectLabel.Text = "Project:"; 298 316 // … … 301 319 this.projectNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 302 320 | System.Windows.Forms.AnchorStyles.Right))); 303 this.projectNameTextBox.Location = new System.Drawing.Point( 82, 52);321 this.projectNameTextBox.Location = new System.Drawing.Point(100, 80); 304 322 this.projectNameTextBox.Name = "projectNameTextBox"; 305 323 this.projectNameTextBox.ReadOnly = true; 306 this.projectNameTextBox.Size = new System.Drawing.Size(4 89, 20);307 this.projectNameTextBox.TabIndex = 2;324 this.projectNameTextBox.Size = new System.Drawing.Size(471, 20); 325 this.projectNameTextBox.TabIndex = 100; 308 326 this.projectNameTextBox.Validated += new System.EventHandler(this.resourceNamesTextBox_Validated); 309 327 // … … 311 329 // 312 330 this.nameLabel.AutoSize = true; 313 this.nameLabel.Location = new System.Drawing.Point(3, 3 0);331 this.nameLabel.Location = new System.Drawing.Point(3, 35); 314 332 this.nameLabel.Name = "nameLabel"; 315 333 this.nameLabel.Size = new System.Drawing.Size(38, 13); 316 this.nameLabel.TabIndex = 20;334 this.nameLabel.TabIndex = 100; 317 335 this.nameLabel.Text = "Name:"; 318 336 // … … 321 339 this.nameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 322 340 | System.Windows.Forms.AnchorStyles.Right))); 323 this.nameTextBox.Location = new System.Drawing.Point( 52, 27);341 this.nameTextBox.Location = new System.Drawing.Point(71, 32); 324 342 this.nameTextBox.Name = "nameTextBox"; 325 this.nameTextBox.Size = new System.Drawing.Size(5 19, 20);343 this.nameTextBox.Size = new System.Drawing.Size(500, 20); 326 344 this.nameTextBox.TabIndex = 1; 327 345 this.nameTextBox.Validated += new System.EventHandler(this.nameTextBox_Validated); 328 346 // 347 // descriptionLabel 348 // 349 this.descriptionLabel.AutoSize = true; 350 this.descriptionLabel.Location = new System.Drawing.Point(3, 59); 351 this.descriptionLabel.Name = "descriptionLabel"; 352 this.descriptionLabel.Size = new System.Drawing.Size(63, 13); 353 this.descriptionLabel.TabIndex = 100; 354 this.descriptionLabel.Text = "Description:"; 355 // 356 // descriptionTextBox 357 // 358 this.descriptionTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 359 | System.Windows.Forms.AnchorStyles.Right))); 360 this.descriptionTextBox.Location = new System.Drawing.Point(71, 56); 361 this.descriptionTextBox.Name = "descriptionTextBox"; 362 this.descriptionTextBox.Size = new System.Drawing.Size(500, 20); 363 this.descriptionTextBox.TabIndex = 2; 364 this.descriptionTextBox.Validated += new System.EventHandler(this.descriptionTextBox_Validated); 365 // 329 366 // refreshButton 330 367 // 331 this.refreshButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Refresh;368 this.refreshButton.Image = ((System.Drawing.Image)(resources.GetObject("refreshButton.Image"))); 332 369 this.refreshButton.Location = new System.Drawing.Point(3, 0); 333 370 this.refreshButton.Name = "refreshButton"; 334 371 this.refreshButton.Size = new System.Drawing.Size(24, 24); 335 this.refreshButton.TabIndex = 22;372 this.refreshButton.TabIndex = 7; 336 373 this.toolTip.SetToolTip(this.refreshButton, "Refresh Data"); 337 374 this.refreshButton.UseVisualStyleBackColor = true; … … 340 377 // updateButton 341 378 // 342 this.updateButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Save;379 this.updateButton.Image = ((System.Drawing.Image)(resources.GetObject("updateButton.Image"))); 343 380 this.updateButton.Location = new System.Drawing.Point(30, 0); 344 381 this.updateButton.Name = "updateButton"; 345 382 this.updateButton.Size = new System.Drawing.Size(24, 24); 346 this.updateButton.TabIndex = 23;383 this.updateButton.TabIndex = 8; 347 384 this.toolTip.SetToolTip(this.updateButton, "Update Job (Name, Project, Resources)"); 348 385 this.updateButton.UseVisualStyleBackColor = true; … … 351 388 // UnloadButton 352 389 // 353 this.UnloadButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Disconnect;390 this.UnloadButton.Image = ((System.Drawing.Image)(resources.GetObject("UnloadButton.Image"))); 354 391 this.UnloadButton.Location = new System.Drawing.Point(57, 0); 355 392 this.UnloadButton.Name = "UnloadButton"; 356 393 this.UnloadButton.Size = new System.Drawing.Size(24, 24); 357 this.UnloadButton.TabIndex = 27;394 this.UnloadButton.TabIndex = 9; 358 395 this.toolTip.SetToolTip(this.UnloadButton, "Unload Job"); 359 396 this.UnloadButton.UseVisualStyleBackColor = true; 360 397 this.UnloadButton.Click += new System.EventHandler(this.UnloadButton_Click); 398 // 399 // searchButton 400 // 401 this.searchButton.Image = ((System.Drawing.Image)(resources.GetObject("searchButton.Image"))); 402 this.searchButton.Location = new System.Drawing.Point(71, 79); 403 this.searchButton.Name = "searchButton"; 404 this.searchButton.Size = new System.Drawing.Size(24, 24); 405 this.searchButton.TabIndex = 3; 406 this.toolTip.SetToolTip(this.searchButton, "Select project and resources"); 407 this.searchButton.UseVisualStyleBackColor = true; 408 this.searchButton.Click += new System.EventHandler(this.searchButton_Click); 361 409 // 362 410 // refreshAutomaticallyCheckBox … … 366 414 this.refreshAutomaticallyCheckBox.Name = "refreshAutomaticallyCheckBox"; 367 415 this.refreshAutomaticallyCheckBox.Size = new System.Drawing.Size(127, 17); 368 this.refreshAutomaticallyCheckBox.TabIndex = 24;416 this.refreshAutomaticallyCheckBox.TabIndex = 100; 369 417 this.refreshAutomaticallyCheckBox.Text = "&Refresh automatically"; 370 418 this.refreshAutomaticallyCheckBox.UseVisualStyleBackColor = true; … … 380 428 this.infoGroupBox.Controls.Add(this.calculatingLabel); 381 429 this.infoGroupBox.Controls.Add(this.jobsLabel); 382 this.infoGroupBox.Location = new System.Drawing.Point(5 80, 5);430 this.infoGroupBox.Location = new System.Drawing.Point(578, 16); 383 431 this.infoGroupBox.Name = "infoGroupBox"; 384 432 this.infoGroupBox.Size = new System.Drawing.Size(133, 89); … … 394 442 this.finishedTextBox.Name = "finishedTextBox"; 395 443 this.finishedTextBox.Size = new System.Drawing.Size(53, 20); 396 this.finishedTextBox.TabIndex = 5;444 this.finishedTextBox.TabIndex = 100; 397 445 // 398 446 // calculatingTextBox … … 403 451 this.calculatingTextBox.Name = "calculatingTextBox"; 404 452 this.calculatingTextBox.Size = new System.Drawing.Size(53, 20); 405 this.calculatingTextBox.TabIndex = 4;453 this.calculatingTextBox.TabIndex = 100; 406 454 // 407 455 // jobsTextBox … … 412 460 this.jobsTextBox.Name = "jobsTextBox"; 413 461 this.jobsTextBox.Size = new System.Drawing.Size(53, 20); 414 this.jobsTextBox.TabIndex = 3;462 this.jobsTextBox.TabIndex = 100; 415 463 // 416 464 // finishedLabel … … 420 468 this.finishedLabel.Name = "finishedLabel"; 421 469 this.finishedLabel.Size = new System.Drawing.Size(49, 13); 422 this.finishedLabel.TabIndex = 2;470 this.finishedLabel.TabIndex = 100; 423 471 this.finishedLabel.Text = "Finished:"; 424 472 // … … 429 477 this.calculatingLabel.Name = "calculatingLabel"; 430 478 this.calculatingLabel.Size = new System.Drawing.Size(62, 13); 431 this.calculatingLabel.TabIndex = 1 ;479 this.calculatingLabel.TabIndex = 100; 432 480 this.calculatingLabel.Text = "Calculating:"; 433 481 // … … 438 486 this.jobsLabel.Name = "jobsLabel"; 439 487 this.jobsLabel.Size = new System.Drawing.Size(46, 13); 440 this.jobsLabel.TabIndex = 0;488 this.jobsLabel.TabIndex = 100; 441 489 this.jobsLabel.Text = "Waiting:"; 442 //443 // searchButton444 //445 this.searchButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Zoom;446 this.searchButton.Location = new System.Drawing.Point(52, 50);447 this.searchButton.Name = "searchButton";448 this.searchButton.Size = new System.Drawing.Size(24, 24);449 this.searchButton.TabIndex = 26;450 this.toolTip.SetToolTip(this.searchButton, "Select project and resources");451 this.searchButton.UseVisualStyleBackColor = true;452 this.searchButton.Click += new System.EventHandler(this.searchButton_Click);453 //454 // hiveExperimentPermissionListView455 //456 this.hiveExperimentPermissionListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)457 | System.Windows.Forms.AnchorStyles.Left)458 | System.Windows.Forms.AnchorStyles.Right)));459 this.hiveExperimentPermissionListView.Caption = "HiveExperimentPermissionList View";460 this.hiveExperimentPermissionListView.Content = null;461 this.hiveExperimentPermissionListView.HiveExperimentId = new System.Guid("00000000-0000-0000-0000-000000000000");462 this.hiveExperimentPermissionListView.Location = new System.Drawing.Point(3, 33);463 this.hiveExperimentPermissionListView.Name = "hiveExperimentPermissionListView";464 this.hiveExperimentPermissionListView.ReadOnly = false;465 this.hiveExperimentPermissionListView.ShowDetails = true;466 this.hiveExperimentPermissionListView.Size = new System.Drawing.Size(703, 390);467 this.hiveExperimentPermissionListView.TabIndex = 0;468 490 // 469 491 // RefreshableHiveJobView … … 478 500 this.Controls.Add(this.nameTextBox); 479 501 this.Controls.Add(this.nameLabel); 502 this.Controls.Add(this.descriptionTextBox); 503 this.Controls.Add(this.descriptionLabel); 480 504 this.Controls.Add(this.tabControl); 481 505 this.Controls.Add(this.startButton); … … 487 511 this.Controls.Add(this.stopButton); 488 512 this.Name = "RefreshableHiveJobView"; 489 this.Size = new System.Drawing.Size(717, 5 60);513 this.Size = new System.Drawing.Size(717, 588); 490 514 this.tabControl.ResumeLayout(false); 491 515 this.tasksTabPage.ResumeLayout(false); … … 515 539 private System.Windows.Forms.Label nameLabel; 516 540 private System.Windows.Forms.TextBox nameTextBox; 541 private System.Windows.Forms.Label descriptionLabel; 542 private System.Windows.Forms.TextBox descriptionTextBox; 517 543 private System.Windows.Forms.ToolTip toolTip; 518 544 private System.Windows.Forms.Button refreshButton; -
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r15966 r15992 121 121 if (Content == null) { 122 122 nameTextBox.Text = string.Empty; 123 descriptionTextBox.Text = string.Empty; 123 124 executionTimeTextBox.Text = string.Empty; 124 125 projectNameTextBox.Text = string.Empty; … … 139 140 140 141 nameTextBox.Text = Content.Job.Name; 142 descriptionTextBox.Text = Content.Job.Description; 141 143 executionTimeTextBox.Text = Content.ExecutionTime.ToString(); 142 144 refreshAutomaticallyCheckBox.Checked = Content.RefreshAutomatically; … … 183 185 tabControl.Enabled = !Locked; 184 186 nameTextBox.Enabled = !Locked; 187 descriptionTextBox.Enabled = !Locked; 185 188 projectNameTextBox.Enabled = !Locked; 186 189 searchButton.Enabled = !Locked; … … 208 211 209 212 this.nameTextBox.ReadOnly = Content.IsProgressing; 213 this.descriptionTextBox.ReadOnly = Content.IsProgressing; 210 214 this.searchButton.Enabled = !Content.IsProgressing && Content.ExecutionState != ExecutionState.Stopped; 211 215 this.jobsTreeView.ReadOnly = !Content.IsControllable || Content.ExecutionState != ExecutionState.Prepared || alreadyUploaded || Content.IsProgressing; … … 457 461 } 458 462 463 private void descriptionTextBox_Validated(object sender, EventArgs e) { 464 if (!SuppressEvents && Content.Job != null && Content.Job.Description != descriptionTextBox.Text) 465 Content.Job.Description = descriptionTextBox.Text; 466 } 467 459 468 private void resourceNamesTextBox_Validated(object sender, EventArgs e) { 460 469 //if (!SuppressEvents && Content.Job != null && Content.Job.ResourceNames != resourceNamesTextBox.Text) … … 478 487 } 479 488 489 private void updateButton_Click2(object sender, EventArgs e) { 490 if (Content.ExecutionState == ExecutionState.Stopped) { 491 MessageBox.Show("Job cannot be updated once it stopped.", "HeuristicLab Hive Job Manager", MessageBoxButtons.OK, MessageBoxIcon.Information); 492 return; 493 } 494 495 HiveClient.UpdateJob( 496 (Exception ex) => ErrorHandling.ShowErrorDialog(this, "Update failed.", ex), 497 Content, 498 new CancellationToken()); 499 UpdateSelectorDialog(); 500 } 501 480 502 private void updateButton_Click(object sender, EventArgs e) { 481 503 if (Content.ExecutionState == ExecutionState.Stopped) { … … 484 506 } 485 507 486 HiveClient.UpdateJob( 487 (Exception ex) => ErrorHandling.ShowErrorDialog(this, "Update failed.", ex), 488 Content, 489 new CancellationToken()); 508 var invoker = new Action<RefreshableJob>(HiveClient.UpdateJob); 509 invoker.BeginInvoke(Content, (ar) => { 510 try { 511 invoker.EndInvoke(ar); 512 } catch (Exception ex) { 513 ThreadPool.QueueUserWorkItem(delegate (object exception) { ErrorHandling.ShowErrorDialog(this, (Exception)exception); }, ex); 514 } 515 }, null); 490 516 UpdateSelectorDialog(); 491 517 }
Note: See TracChangeset
for help on using the changeset viewer.