Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4201


Ignore:
Timestamp:
08/11/10 17:50:34 (14 years ago)
Author:
mkommend
Message:

corrected setting of the ViewHost properties in the ShowContent method (ticket #1145)

File:
1 edited

Legend:

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

    r4068 r4201  
    234234      if (this.ShowContentInViewHost) {
    235235        ViewHost viewHost = new ViewHost();
    236         viewHost.Content = content;
    237236        viewHost.ViewType = viewType;
    238237        view = viewHost;
    239         view.Show();
    240       } else {
     238      } else
    241239        view = MainFormManager.CreateView(viewType);
    242         if (view != null) {
    243           view.Content = content;
    244           view.Show();
    245         }
    246       }
    247 
     240
     241      view.Content = content;
     242      view.Show();
    248243      return view;
    249244    }
Note: See TracChangeset for help on using the changeset viewer.