Changeset 2458 for trunk/sources/HeuristicLab.MainForm.Test/3.2/ButtonItems/SaveToolStripButtonItem.cs
- Timestamp:
- 10/30/09 17:17:53 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.