- Timestamp:
- 12/10/09 10:11:28 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/DockingMainForm.cs
r2458 r2548 42 42 } 43 43 44 p ublic override bool ShowView(IView view) {45 if (InvokeRequired) return (bool)Invoke((Func<IView, bool>)ShowView, view);44 protected override void Show(IView view, bool firstTimeShown) { 45 if (InvokeRequired) Invoke((Action<IView, bool>)Show, view, firstTimeShown); 46 46 else { 47 b ool ret = base.ShowView(view);48 if ( ret)47 base.Show(view, firstTimeShown); 48 if (firstTimeShown) 49 49 ((DockForm)GetForm(view)).Show(dockPanel); 50 50 else 51 51 ((DockForm)GetForm(view)).Activate(); 52 return ret;53 52 } 54 53 } 55 public override void HideView(IView view) { 54 55 protected override void Hide(IView view) { 56 56 if (InvokeRequired) Invoke((Action<IView>)HideView, view); 57 57 else { 58 58 Form form = base.GetForm(view); 59 if (form != null) 59 if (form != null) { 60 60 ((DockForm)form).Hide(); 61 } 61 62 } 62 63 }
Note: See TracChangeset
for help on using the changeset viewer.