Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/29/10 16:26:43 (14 years ago)
Author:
mkommend
Message:

corrected MainForm.ActiveViewChanged event and View.IsShown property (ticket #857)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/MainForm.cs

    r2707 r2723  
    8686      get { return this.activeView; }
    8787      protected set {
    88         if (this.activeView != value) {
     88        if (this.activeView != value && (value != null || this.views.Keys.All(v => !v.IsShown))) {
    8989          if (InvokeRequired) {
    9090            Action<IView> action = delegate(IView activeView) { this.ActiveView = activeView; };
     
    214214        if (this.views.ContainsKey(view)) {
    215215          this.Hide(view);
     216          if (this.activeView == view && views.All(v => !view.IsShown))
     217            this.ActiveView = null;
    216218          this.OnViewHidden(view);
    217219        }
Note: See TracChangeset for help on using the changeset viewer.