Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/13/09 10:58:31 (14 years ago)
Author:
mkommend
Message:

initial version of refactored mainform (ticket #771)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Mainform refactoring/HeuristicLab.MainForm.Test/3.2/ButtonItems/NewEditorToolStripButtonItem.cs

    r2249 r2426  
    33using System.Linq;
    44using System.Text;
     5using HeuristicLab.MainForm.WindowsForms;
    56
    67namespace HeuristicLab.MainForm.Test {
    7   public class NewEditorToolStripButtonItem : ToolStripButtonItemBase, ITestUserInterfaceItemProvider {
     8  public class NewEditorToolStripButtonItem : HeuristicLab.MainForm.WindowsForms.ToolBarItemBase, ITestUserInterfaceItemProvider {
    89    public override int Position {
    910      get { return 12; }
     
    1415    }
    1516
    16     public override string Structure {
    17       get { return "New"; }
     17    public override IEnumerable<string> Structure {
     18      get { return new string []{"New"}; }
    1819    }
    1920
    20     public override void Execute(IMainForm mainform) {
    21       new NewEditorAction().Execute(mainform);
     21    public override System.Windows.Forms.ToolStripItemDisplayStyle ToolStripItemDisplayStyle {
     22      get { return System.Windows.Forms.ToolStripItemDisplayStyle.ImageAndText; }
     23    }
     24
     25    public override void Execute() {
     26      new NewEditorAction().Execute(MainFormManager.Instance);
    2227    }
    2328  }
Note: See TracChangeset for help on using the changeset viewer.