Changeset 2636 for trunk/sources/HeuristicLab.MainForm.Test
- Timestamp:
- 01/18/10 10:59:25 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.MainForm.Test/3.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.Test/3.2/Actions/NewEditorAction.cs
r2458 r2636 7 7 namespace HeuristicLab.MainForm.Test { 8 8 public static class NewEditorAction{ 9 private static IView view; 9 10 10 public static void Execute(IMainForm mainform) { 11 if (view == null) 12 view = new EditorView(); 13 view.Caption = "Editor View"; 11 EditorView view = new EditorView(); 12 view.Caption = "Editor View " + mainform.Views.Count(); 14 13 mainform.ShowView(view); 15 14 } -
trunk/sources/HeuristicLab.MainForm.Test/3.2/ButtonItems/OpenToolStripButtonItem.cs
r2514 r2636 22 22 new OpenAction().Execute(MainFormManager.MainForm); 23 23 } 24 25 public override void ActiveViewChanged(object sender, EventArgs e) { 26 this.ToolStripItem.Enabled = !this.ToolStripItem.Enabled; 27 MainFormManager.MainForm.Title = 28 MainFormManager.MainForm.ActiveView == null ? "null" : MainFormManager.MainForm.ActiveView.Caption; 29 } 24 30 } 25 31 }
Note: See TracChangeset
for help on using the changeset viewer.