Free cookie consent management tool by TermsFeed Policy Generator

Changes between Initial Version and Version 1 of Ticket #2270, comment 4


Ignore:
Timestamp:
07/06/15 13:51:53 (9 years ago)
Author:
abeham
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2270, comment 4

    initial v1  
    1616using HeuristicLab.Optimization;
    1717using HeuristicLab.Analysis;
     18using HeuristicLab.MainForm;
     19using HeuristicLab.MainForm.WindowsForms;
    1820
    1921public class MyScript : HeuristicLab.Scripting.CSharpScriptBase {
     
    2426      AddRuns(runs, 1000);
    2527      vars.runs = runs;
     28      var before = ((HeuristicLab.MainForm.WindowsForms.DockingMainForm)MainFormManager.MainForm).ShowContentInViewHost;
     29      ((HeuristicLab.MainForm.WindowsForms.DockingMainForm)MainFormManager.MainForm).ShowContentInViewHost = false;
     30      foreach (var rcviewType in MainFormManager.GetViewTypes(typeof(RunCollection))) {
     31        MainFormManager.MainForm.ShowContent(runs, rcviewType);
     32      }
     33      ((HeuristicLab.MainForm.WindowsForms.DockingMainForm)MainFormManager.MainForm).ShowContentInViewHost = before;
    2634    } else {
    2735      runs = (RunCollection)vars.runs;