Changeset 2426 for branches/Mainform refactoring/HeuristicLab.MainForm.Test/3.2/ButtonItems/NewFormToolStripButtonItem.cs
- Timestamp:
- 10/13/09 10:58:31 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Mainform refactoring/HeuristicLab.MainForm.Test/3.2/ButtonItems/NewFormToolStripButtonItem.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 NewFormToolStripButtonItem : ToolStripButtonItemBase, ITestUserInterfaceItemProvider {8 public class NewFormToolStripButtonItem : HeuristicLab.MainForm.WindowsForms.ToolBarItemBase, ITestUserInterfaceItemProvider { 8 9 public override int Position { 9 10 get { return 11; } … … 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 NewFormAction().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 NewFormAction().Execute(MainFormManager.Instance); 22 27 } 23 28 }
Note: See TracChangeset
for help on using the changeset viewer.