Changeset 16308 for branches/2845_EnhancedProgress/HeuristicLab.Optimization.Views/3.3/ExperimentView.cs
- Timestamp:
- 11/20/18 13:52:40 (6 years ago)
- Location:
- branches/2845_EnhancedProgress
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2845_EnhancedProgress
- Property svn:mergeinfo changed
/stable reverse-merged: 15587-15588 /trunk/sources removed
- Property svn:mergeinfo changed
-
branches/2845_EnhancedProgress/HeuristicLab.Optimization.Views
- Property svn:mergeinfo changed
/stable/HeuristicLab.Optimization.Views reverse-merged: 15587 /trunk/sources/HeuristicLab.Optimization.Views removed
- Property svn:mergeinfo changed
-
branches/2845_EnhancedProgress/HeuristicLab.Optimization.Views/3.3/ExperimentView.cs
r16307 r16308 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using System;23 22 using System.Linq; 24 23 using System.Windows.Forms; … … 44 43 experimentTreeView.Content = null; 45 44 runsViewHost.Content = null; 46 workersNumericUpDown.Value = 1;47 45 } else { 48 46 experimentTreeView.Content = Content; 49 47 runsViewHost.Content = Content.Runs; 50 workersNumericUpDown.Value = Content.NumberOfWorkers;51 48 } 52 49 } … … 56 53 experimentTreeView.Enabled = Content != null; 57 54 runsViewHost.Enabled = Content != null; 58 workersNumericUpDown.Enabled = Content != null && Content.ExecutionState != ExecutionState.Started;59 55 } 60 56 … … 70 66 base.OnClosed(e); 71 67 } 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 Events79 private void workersNumericUpDown_ValueChanged(object sender, System.EventArgs e) {80 if (Content != null)81 Content.NumberOfWorkers = (int)workersNumericUpDown.Value;82 }83 #endregion84 68 } 85 69 }
Note: See TracChangeset
for help on using the changeset viewer.