Changeset 16307 for branches/2845_EnhancedProgress/HeuristicLab.Optimization.Views/3.3/ExperimentView.cs
- Timestamp:
- 11/20/18 11:54:35 (6 years ago)
- Location:
- branches/2845_EnhancedProgress
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2845_EnhancedProgress
- Property svn:mergeinfo changed
-
branches/2845_EnhancedProgress/HeuristicLab.Optimization.Views
- Property svn:mergeinfo changed
/stable/HeuristicLab.Optimization.Views merged: 15587 /trunk/sources/HeuristicLab.Optimization.Views (added) merged: 15452,15566,15581,15583,15589,15607,15610,15621-15623,15645,15672
- Property svn:mergeinfo changed
-
branches/2845_EnhancedProgress/HeuristicLab.Optimization.Views/3.3/ExperimentView.cs
r14185 r16307 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic 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.