Changeset 15973 for branches/2522_RefactorPluginInfrastructure/HeuristicLab.Optimization.Views/3.3/ExperimentView.cs
- Timestamp:
- 06/28/18 11:13:37 (6 years ago)
- Location:
- branches/2522_RefactorPluginInfrastructure
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2522_RefactorPluginInfrastructure
- Property svn:ignore
-
old new 24 24 protoc.exe 25 25 obj 26 .vs
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Optimization.Views
- Property svn:mergeinfo changed
-
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Optimization.Views/3.3/ExperimentView.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using System; 22 23 using System.Linq; 23 24 using System.Windows.Forms; … … 43 44 experimentTreeView.Content = null; 44 45 runsViewHost.Content = null; 46 workersNumericUpDown.Value = 1; 45 47 } else { 46 48 experimentTreeView.Content = Content; 47 49 runsViewHost.Content = Content.Runs; 50 workersNumericUpDown.Value = Content.NumberOfWorkers; 48 51 } 49 52 } … … 53 56 experimentTreeView.Enabled = Content != null; 54 57 runsViewHost.Enabled = Content != null; 58 workersNumericUpDown.Enabled = Content != null && Content.ExecutionState != ExecutionState.Started; 55 59 } 56 60 … … 66 70 base.OnClosed(e); 67 71 } 72 73 protected override void Content_ExecutionStateChanged(object sender, EventArgs e) { 74 base.Content_ExecutionStateChanged(sender, e); 75 workersNumericUpDown.Enabled = Content.ExecutionState != ExecutionState.Started; 76 } 77 78 #region Events 79 private void workersNumericUpDown_ValueChanged(object sender, System.EventArgs e) { 80 if (Content != null) 81 Content.NumberOfWorkers = (int)workersNumericUpDown.Value; 82 } 83 #endregion 68 84 } 69 85 }
Note: See TracChangeset
for help on using the changeset viewer.