Changeset 2458 for trunk/sources/HeuristicLab.MainForm.Test/3.2/ButtonItems
- Timestamp:
- 10/30/09 17:17:53 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.MainForm.Test/3.2/ButtonItems
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.Test/3.2/ButtonItems/NewEditorToolStripButtonItem.cs
r2249 r2458 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 NewEditorAction.Execute(MainFormManager.MainForm); 22 27 } 23 28 } -
trunk/sources/HeuristicLab.MainForm.Test/3.2/ButtonItems/NewFormToolStripButtonItem.cs
r2249 r2458 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.MainForm); 22 27 } 23 28 } -
trunk/sources/HeuristicLab.MainForm.Test/3.2/ButtonItems/NewToolStripButtonItem.cs
r2249 r2458 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 NewToolStripButtonItem : ToolStripButtonItemBase, ITestUserInterfaceItemProvider {8 public class NewToolStripButtonItem : HeuristicLab.MainForm.WindowsForms.ToolBarItemBase, ITestUserInterfaceItemProvider { 8 9 public override int Position { 9 10 get { return 10; } … … 22 23 } 23 24 24 public override void Execute( IMainForm mainform) {25 public override void Execute() { 25 26 } 26 27 } -
trunk/sources/HeuristicLab.MainForm.Test/3.2/ButtonItems/OpenToolStripButtonItem.cs
r2249 r2458 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 OpenToolStripButtonItem : Tool StripButtonItemBase, ITestUserInterfaceItemProvider {8 public class OpenToolStripButtonItem : ToolBarItemBase, ITestUserInterfaceItemProvider { 8 9 public override int Position { 9 10 get { return 20; } … … 18 19 } 19 20 20 public override void Execute( IMainForm mainform) {21 new OpenAction().Execute( mainform);21 public override void Execute() { 22 new OpenAction().Execute(MainFormManager.MainForm); 22 23 } 23 24 } -
trunk/sources/HeuristicLab.MainForm.Test/3.2/ButtonItems/SaveToolStripButtonItem.cs
r2269 r2458 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 SaveToolStripButtonItem : ToolStripButtonItemBase, ITestUserInterfaceItemProvider {8 public class SaveToolStripButtonItem : HeuristicLab.MainForm.WindowsForms.ToolBarItemBase, ITestUserInterfaceItemProvider { 8 9 public override int Position { 9 10 get { return 30; } … … 18 19 } 19 20 20 public override void Execute( IMainForm mainform) {21 new SaveAction().Execute( mainform);21 public override void Execute() { 22 new SaveAction().Execute(MainFormManager.MainForm); 22 23 } 23 24 24 25 public override void ActiveViewChanged(object sender, EventArgs e) { 25 IMainForm mainform = (IMainForm)sender;26 IMainForm mainform = MainFormManager.MainForm; 26 27 if (mainform.ActiveView == null) 27 28 this.ToolStripItem.Enabled = false; 28 29 else 29 this.ToolStripItem.Enabled = !(mainform.ActiveView is FormView );30 this.ToolStripItem.Enabled = !(mainform.ActiveView is FormView1); 30 31 } 31 32
Note: See TracChangeset
for help on using the changeset viewer.