Changes between Initial Version and Version 1 of Ticket #2270, comment 4
- Timestamp:
- 07/06/15 13:51:53 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2270, comment 4
initial v1 16 16 using HeuristicLab.Optimization; 17 17 using HeuristicLab.Analysis; 18 using HeuristicLab.MainForm; 19 using HeuristicLab.MainForm.WindowsForms; 18 20 19 21 public class MyScript : HeuristicLab.Scripting.CSharpScriptBase { … … 24 26 AddRuns(runs, 1000); 25 27 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; 26 34 } else { 27 35 runs = (RunCollection)vars.runs;