Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/22/10 22:06:20 (15 years ago)
Author:
mkommend
Message:

corrected small bug fixes in ViewHost (ticket #972)

File:
1 edited

Legend:

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

    r3471 r3497  
    3434      cachedViews = new Dictionary<Type, IContentView>();
    3535      viewType = null;
    36       Content = null;
    3736      startDragAndDrop = false;
    3837      viewContextMenuStrip.IgnoredViewTypes = new List<Type>() { typeof(ViewHost) };
    3938      activeView = null;
     39      Content = null;
     40      OnContentChanged();
    4041    }
    4142    public ViewHost(IContent content)
     
    132133        }
    133134
     135
    134136        if (!ViewCanShowContent(viewType, Content)) {
    135137          ViewType = MainFormManager.GetDefaultViewType(Content.GetType());
     
    268270        startDragAndDrop = true;
    269271        viewsLabel.Capture = false;
     272        viewsLabel.Focus();
    270273      }
    271274    }
Note: See TracChangeset for help on using the changeset viewer.