Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.MainForm.Test/3.2/Actions/NewEditorAction.cs @ 2534

Last change on this file since 2534 was 2458, checked in by mkommend, 15 years ago

integrated branch MainForm refactoring into trunk (ticket #771)

File size: 435 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows.Forms;
6
7namespace HeuristicLab.MainForm.Test {
8  public static class NewEditorAction{
9    private static IView view;
10    public static void Execute(IMainForm mainform) {
11      if (view == null)
12        view = new EditorView();
13      view.Caption = "Editor View";
14      mainform.ShowView(view);
15    }
16  }
17
18}
Note: See TracBrowser for help on using the repository browser.