Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/20/18 13:52:40 (6 years ago)
Author:
pfleck
Message:

#2845 reverted the last merge (r16307) because some revisions were missing

Location:
branches/2845_EnhancedProgress
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2845_EnhancedProgress

  • branches/2845_EnhancedProgress/HeuristicLab.Optimization.Views

  • branches/2845_EnhancedProgress/HeuristicLab.Optimization.Views/3.3/ExperimentView.cs

    r16307 r16308  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2020#endregion
    2121
    22 using System;
    2322using System.Linq;
    2423using System.Windows.Forms;
     
    4443        experimentTreeView.Content = null;
    4544        runsViewHost.Content = null;
    46         workersNumericUpDown.Value = 1;
    4745      } else {
    4846        experimentTreeView.Content = Content;
    4947        runsViewHost.Content = Content.Runs;
    50         workersNumericUpDown.Value = Content.NumberOfWorkers;
    5148      }
    5249    }
     
    5653      experimentTreeView.Enabled = Content != null;
    5754      runsViewHost.Enabled = Content != null;
    58       workersNumericUpDown.Enabled = Content != null && Content.ExecutionState != ExecutionState.Started;
    5955    }
    6056
     
    7066      base.OnClosed(e);
    7167    }
    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
    8468  }
    8569}
Note: See TracChangeset for help on using the changeset viewer.