Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/15/11 02:34:08 (14 years ago)
Author:
swagner
Message:

Enabled batch runs to deal with optimizers (#1378)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/CreateExperimentMenuItem.cs

    r4650 r5300  
    3838    }
    3939    public override string ToolTipText {
    40       get { return "Create an experiment for the shown algorithm"; }
     40      get { return "Create an experiment for the shown optimizer"; }
    4141    }
    4242
     
    4646    protected override void OnActiveViewChanged(object sender, EventArgs e) {
    4747      IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView;
    48       ToolStripItem.Enabled = (activeView != null) && (activeView.Content != null) && (activeView.Content is IAlgorithm) && !activeView.Locked;
     48      ToolStripItem.Enabled = (activeView != null) && (activeView.Content != null) && (activeView.Content is IOptimizer) && !activeView.Locked;
    4949    }
    5050
    5151    public override void Execute() {
    5252      IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView;
    53       if ((activeView != null) && (activeView.Content != null) && (activeView.Content is IAlgorithm) && !activeView.Locked) {
    54         using (CreateExperimentDialog dialog = new CreateExperimentDialog((IAlgorithm)activeView.Content)) {
     53      if ((activeView != null) && (activeView.Content != null) && (activeView.Content is IOptimizer) && !activeView.Locked) {
     54        using (CreateExperimentDialog dialog = new CreateExperimentDialog((IOptimizer)activeView.Content)) {
    5555          if (dialog.ShowDialog() == DialogResult.OK) MainFormManager.MainForm.ShowContent(dialog.Experiment);
    5656        }
Note: See TracChangeset for help on using the changeset viewer.