Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/07/10 11:38:19 (14 years ago)
Author:
mkommend
Message:

implemented showInViewHost and moved ViewHost from Core.Views to MainForm.WindowsForm (ticket #961)

File:
1 moved

Legend:

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

    r3280 r3281  
    2424using System.Linq;
    2525using System.Windows.Forms;
    26 using HeuristicLab.Common;
    2726using HeuristicLab.MainForm;
    28 using HeuristicLab.MainForm.WindowsForms;
    2927
    30 namespace HeuristicLab.Core.Views {
     28namespace HeuristicLab.MainForm.WindowsForms {
    3129  public sealed partial class ViewHost : UserControl {
    3230    private Type viewType;
     
    3735          if (value != null && !ViewCanShowContent(value, content))
    3836            throw new ArgumentException(string.Format("View \"{0}\" cannot display content \"{1}\".",
    39                                                       value.GetPrettyName(),
    40                                                       content.GetType().GetPrettyName()));
     37                                                      value, content.GetType()));
    4138          viewType = value;
    4239          UpdateView();
     
    110107      if (!ViewCanShowContent(viewType, content))
    111108        throw new InvalidOperationException(string.Format("View \"{0}\" cannot display content \"{1}\".",
    112                                                           viewType.GetPrettyName(),
    113                                                           Content.GetType().GetPrettyName()));
     109                                                          viewType, Content.GetType()));
    114110
    115111      UpdateActiveMenuItem();
Note: See TracChangeset for help on using the changeset viewer.