- Timestamp:
- 04/19/10 00:09:19 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/SingleDocumentMainForm.cs
r3398 r3403 45 45 } 46 46 47 protected override void Show (IView view, bool firstTimeShown) {48 if (InvokeRequired) Invoke((Action<IView, bool>)Show , view, firstTimeShown);47 protected override void ShowView(IView view, bool firstTimeShown) { 48 if (InvokeRequired) Invoke((Action<IView, bool>)ShowView, view, firstTimeShown); 49 49 else { 50 base.Show (view, firstTimeShown);50 base.ShowView(view, firstTimeShown); 51 51 if (firstTimeShown) 52 52 this.GetForm(view).Show(this); … … 62 62 else { 63 63 base.Hide(view); 64 this.GetForm(view).Hide(); 64 Form form = this.GetForm(view); 65 if (form != null) { 66 form.Hide(); 67 } 65 68 } 66 69 } … … 72 75 ViewHost viewHost = new ViewHost(contentView); 73 76 form = new DocumentForm(viewHost); 74 } else 77 this.AddViewFormCombination(viewHost, form); 78 } else { 75 79 form = new DocumentForm(view); 80 this.AddViewFormCombination(view, form); 81 } 76 82 77 83 form.ShowInTaskbar = true;
Note: See TracChangeset
for help on using the changeset viewer.