Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/19/09 18:13:55 (15 years ago)
Author:
mkommend
Message:

added ability to generate separators in between menu- and toolbaritems (ticket #771)

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.Test/3.2/MenuItems/SeparatorMenuItem.cs

    r2504 r2514  
    99
    1010namespace HeuristicLab.MainForm.Test {
    11   public class NewFormToolStripMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItemBase, ITestUserInterfaceItemProvider {
    12     public override string Name {
    13       get { return "Form"; }
    14     }
    15 
     11  public class SeparatorMenuItem : MenuSeparatorItemBase, ITestUserInterfaceItemProvider {
    1612    public override IEnumerable<string> Structure {
    17       get { return "File/New".Split('/'); }
     13      get { return new string[] { "File" }; }
    1814    }
    1915
    2016    public override int Position {
    21       get { return 1110; }
    22    
    23     }
     17      get { return 1120; }
    2418
    25     public override void Execute() {
    26       new NewFormAction().Execute(MainFormManager.MainForm);
    2719    }
    2820  }
Note: See TracChangeset for help on using the changeset viewer.