Changeset 12969 for branches/gteufl/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
- Timestamp:
- 09/25/15 14:39:59 (9 years ago)
- Location:
- branches/gteufl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gteufl
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll 10 11 HeuristicLab 3.3.5.1.ReSharper.user 11 12 HeuristicLab 3.3.6.0.ReSharper.user 12 13 HeuristicLab.4.5.resharper.user 13 14 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development 14 16 HeuristicLab.resharper.user 15 17 ProtoGen.exe … … 17 19 _ReSharper.HeuristicLab 18 20 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests 19 22 _ReSharper.HeuristicLab.ExtLibs 20 23 bin 21 24 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll 25 obj
-
- Property svn:mergeinfo changed
-
Property
svn:global-ignores
set to
*.nuget
packages
- Property svn:ignore
-
branches/gteufl/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r10150 r12969 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 119 119 executionTimeTextBox.Text = string.Empty; 120 120 resourceNamesTextBox.Text = string.Empty; 121 isPrivilegedCheckBox.Checked = false;122 121 refreshAutomaticallyCheckBox.Checked = false; 123 122 lock (runCollectionViewLocker) { … … 132 131 executionTimeTextBox.Text = Content.ExecutionTime.ToString(); 133 132 resourceNamesTextBox.Text = Content.Job.ResourceNames; 134 isPrivilegedCheckBox.Checked = Content.Job.IsPrivileged;135 133 refreshAutomaticallyCheckBox.Checked = Content.RefreshAutomatically; 136 134 logView.Content = Content.Log; … … 163 161 searchButton.Enabled = !Locked; 164 162 jobsTreeView.Enabled = !Locked; 165 isPrivilegedCheckBox.Enabled = !Locked;166 163 refreshAutomaticallyCheckBox.Enabled = !Locked; 167 164 refreshButton.Enabled = !Locked; … … 191 188 this.jobsTreeView.ReadOnly = !Content.IsControllable || Content.ExecutionState != ExecutionState.Prepared || alreadyUploaded || Content.IsProgressing; 192 189 193 this.isPrivilegedCheckBox.Enabled = HiveClient.Instance.IsAllowedPrivileged && Content.IsControllable && !(Content.ExecutionState != ExecutionState.Prepared || alreadyUploaded) && !Content.IsProgressing;194 190 this.refreshAutomaticallyCheckBox.Enabled = Content.IsControllable && alreadyUploaded && jobsLoaded && Content.ExecutionState == ExecutionState.Started && !Content.IsProgressing; 195 191 this.refreshButton.Enabled = Content.IsDownloadable && alreadyUploaded && !Content.IsProgressing; … … 279 275 lock (runCollectionViewLocker) { 280 276 runCollectionViewHost.Content = GetAllRunsFromJob(Content); 281 }282 if (InvokeRequired) {283 Invoke(new Action(() => { isPrivilegedCheckBox.Checked = Content.Job.IsPrivileged; }));284 } else {285 isPrivilegedCheckBox.Checked = Content.Job.IsPrivileged;286 277 } 287 278 } … … 423 414 } 424 415 425 private void isPrivilegedCheckBox_CheckChanged(object sender, EventArgs e) {426 if (Content != null && !SuppressEvents) Content.Job.IsPrivileged = isPrivilegedCheckBox.Checked;427 }428 429 416 private void refreshButton_Click(object sender, EventArgs e) { 430 417 var invoker = new Action<RefreshableJob>(HiveClient.LoadJob); … … 468 455 private void jobsTreeView_DragEnter(object sender, DragEventArgs e) { 469 456 e.Effect = DragDropEffects.None; 470 var obj = e.Data.GetData(Constants.DragDropDataFormat) as IDeepCloneable; 457 var obj = (IDeepCloneable)e.Data.GetData(Constants.DragDropDataFormat); 458 471 459 Type objType = obj.GetType(); 472 473 var hiveTaskFound = ItemTask.IsTypeSupported(objType); 474 if (hiveTaskFound) { 460 if (ItemTask.IsTypeSupported(objType)) { 475 461 if (Content.Id != Guid.Empty) e.Effect = DragDropEffects.None; 476 462 else if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key … … 481 467 private void jobsTreeView_DragDrop(object sender, DragEventArgs e) { 482 468 if (e.Effect != DragDropEffects.None) { 483 var obj = e.Data.GetData(Constants.DragDropDataFormat) as IItem;469 var obj = (IItem)e.Data.GetData(Constants.DragDropDataFormat); 484 470 485 471 IItem newObj = null; 486 472 if (e.Effect.HasFlag(DragDropEffects.Copy)) { 487 newObj = obj.Clone(new Cloner()) as IItem;473 newObj = (IItem)obj.Clone(); 488 474 } else { 489 475 newObj = obj; … … 495 481 } 496 482 if (newObj is IExecutable) { 497 IExecutable exec = newObj as IExecutable;483 IExecutable exec = (IExecutable)newObj; 498 484 if (exec.ExecutionState != ExecutionState.Prepared) { 499 485 exec.Prepare();
Note: See TracChangeset
for help on using the changeset viewer.