Changeset 2426 for branches/Mainform refactoring/HeuristicLab.MainForm.Test/3.2/ButtonItems/NewEditorToolStripButtonItem.cs
- Timestamp:
- 10/13/09 10:58:31 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Mainform refactoring/HeuristicLab.MainForm.Test/3.2/ButtonItems/NewEditorToolStripButtonItem.cs
r2249 r2426 3 3 using System.Linq; 4 4 using System.Text; 5 using HeuristicLab.MainForm.WindowsForms; 5 6 6 7 namespace HeuristicLab.MainForm.Test { 7 public class NewEditorToolStripButtonItem : ToolStripButtonItemBase, ITestUserInterfaceItemProvider {8 public class NewEditorToolStripButtonItem : HeuristicLab.MainForm.WindowsForms.ToolBarItemBase, ITestUserInterfaceItemProvider { 8 9 public override int Position { 9 10 get { return 12; } … … 14 15 } 15 16 16 public override stringStructure {17 get { return "New"; }17 public override IEnumerable<string> Structure { 18 get { return new string []{"New"}; } 18 19 } 19 20 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); 22 27 } 23 28 }
Note: See TracChangeset
for help on using the changeset viewer.