Changeset 2443 for branches/Mainform refactoring/HeuristicLab.MainForm.Test
- Timestamp:
- 10/20/09 15:34:02 (15 years ago)
- Location:
- branches/Mainform refactoring/HeuristicLab.MainForm.Test/3.2
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Mainform refactoring/HeuristicLab.MainForm.Test/3.2/Actions/NewEditorAction.cs
r2426 r2443 6 6 7 7 namespace HeuristicLab.MainForm.Test { 8 public class NewEditorAction{ 9 public void Execute(IMainForm mainform) { 10 MessageBox.Show("New Editor action called"); 11 EditorView x = new EditorView(); 12 x.Caption = "Editor View"; 13 mainform.ShowView(x); 8 public static class NewEditorAction{ 9 private static IView view; 10 public static void Execute(IMainForm mainform) { 11 if (view == null) 12 view = new EditorView(); 13 view.Caption = "Editor View"; 14 mainform.ShowView(view); 14 15 } 15 16 } -
branches/Mainform refactoring/HeuristicLab.MainForm.Test/3.2/Actions/NewFormAction.cs
r2437 r2443 8 8 public class NewFormAction { 9 9 public void Execute(IMainForm mainform) { 10 MessageBox.Show("New form called");11 10 FormView1 x = new FormView1(); 12 11 x.Caption = "FormView"; -
branches/Mainform refactoring/HeuristicLab.MainForm.Test/3.2/ButtonItems/NewEditorToolStripButtonItem.cs
r2433 r2443 24 24 25 25 public override void Execute() { 26 new NewEditorAction().Execute(MainFormManager.MainForm);26 NewEditorAction.Execute(MainFormManager.MainForm); 27 27 } 28 28 } -
branches/Mainform refactoring/HeuristicLab.MainForm.Test/3.2/EditorView.cs
r2437 r2443 12 12 namespace HeuristicLab.MainForm.Test { 13 13 [DefaultView] 14 public partial class EditorView : ViewBase< IList> {14 public partial class EditorView : ViewBase<ArrayList> { 15 15 public EditorView() { 16 16 InitializeComponent(); … … 31 31 //def3.ToString(); 32 32 33 MainFormManager.MainForm.HideView(this); 33 34 this.OnChanged(); 34 35 } … … 44 45 } 45 46 } 46 47 #region IView<string> Members48 49 public void View(string item) {50 throw new NotImplementedException();51 }52 53 #endregion54 47 } 55 48 } -
branches/Mainform refactoring/HeuristicLab.MainForm.Test/3.2/FormView.cs
r2437 r2443 8 8 using System.Windows.Forms; 9 9 using HeuristicLab.MainForm.WindowsForms; 10 using System.Collections; 10 11 11 12 namespace HeuristicLab.MainForm.Test { 12 13 [DefaultView] 13 public partial class FormView1 : ViewBase<IC loneable>{14 public partial class FormView1 : ViewBase<ICollection> { 14 15 private int[] array; 15 16 public FormView1() { -
branches/Mainform refactoring/HeuristicLab.MainForm.Test/3.2/FormView2.cs
r2437 r2443 10 10 11 11 namespace HeuristicLab.MainForm.Test { 12 public partial class FormView2 : ViewBase< ArrayList> {12 public partial class FormView2 : ViewBase<IEnumerable> { 13 13 private int[] array; 14 14 public FormView2() { -
branches/Mainform refactoring/HeuristicLab.MainForm.Test/3.2/MenuItems/NewEditorToolStripMenuItem.cs
r2433 r2443 23 23 24 24 public override void Execute() { 25 new NewEditorAction().Execute(MainFormManager.MainForm);25 NewEditorAction.Execute(MainFormManager.MainForm); 26 26 } 27 27 }
Note: See TracChangeset
for help on using the changeset viewer.