Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/18/10 03:25:33 (14 years ago)
Author:
mkommend
Message:

renamed MainForm.ShowViewsInViewHost and removed ShowInViewHost from ViewAttribute (ticket #972)

Location:
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2
Files:
6 edited

Legend:

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

    r3281 r3395  
    5858          this.view.CaptionChanged += new EventHandler(View_CaptionChanged);
    5959          UpdateText();
    60 
    61           ContentView contentView = view as ContentView;
    62           if (ViewAttribute.GetShowInViewHost(viewType) && contentView != null) {
    63             ViewHost viewHost = new ViewHost();
    64             viewHost.ViewType = viewType;
    65             viewHost.Content = contentView.Content;
    66             viewHost.Dock = DockStyle.Fill;
    67             viewPanel.Controls.Add(viewHost);
    68           } else
    69             viewPanel.Controls.Add(control);
     60          viewPanel.Controls.Add(control);
    7061        }
    7162      } else {
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/DockingMainForm.cs

    r3394 r3395  
    4040      InitializeComponent();
    4141    }
    42     public DockingMainForm(Type userInterfaceItemType, bool showInViewHost)
     42    public DockingMainForm(Type userInterfaceItemType, bool showViewsInViewHost)
    4343      : this(userInterfaceItemType) {
    44       this.ShowInViewHost = showInViewHost;
     44      this.ShowViewsInViewHost = showViewsInViewHost;
    4545    }
    4646
     
    6969      DockForm form;
    7070      IContentView contentView = view as IContentView;
    71       if (ShowInViewHost && contentView != null && contentView.GetType() != typeof(ViewHost)) {
     71      if (ShowViewsInViewHost && contentView != null && contentView.GetType() != typeof(ViewHost)) {
    7272        ViewHost viewHost = new ViewHost(contentView.Content);
    7373        form = new DockForm(viewHost);
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/DocumentForm.cs

    r3281 r3395  
    4444        view.CaptionChanged += new EventHandler(View_CaptionChanged);
    4545        UpdateText();
    46 
    47         ContentView contentView = view as ContentView;
    48         if (ViewAttribute.GetShowInViewHost(viewType) && contentView != null) {
    49           ViewHost viewHost = new ViewHost();
    50           viewHost.ViewType = viewType;
    51           viewHost.Content = contentView.Content;
    52           viewHost.Dock = DockStyle.Fill;
    53           viewPanel.Controls.Add(viewHost);
    54         } else
    55           viewPanel.Controls.Add(control);
     46        viewPanel.Controls.Add(control);
    5647      } else {
    5748        Label errorLabel = new Label();
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/MainForm.cs

    r3394 r3395  
    4343      this.userInterfaceItems = new List<IUserInterfaceItem>();
    4444      this.initialized = false;
     45      this.showViewsInViewHost = false;
    4546    }
    4647
     
    5152
    5253    #region properties
    53     private bool showInViewHost;
    54     public bool ShowInViewHost {
    55       get { return this.showInViewHost; }
    56       set { this.showInViewHost = value; }
     54    private bool showViewsInViewHost;
     55    public bool ShowViewsInViewHost {
     56      get { return this.showViewsInViewHost; }
     57      set { this.showViewsInViewHost = value; }
    5758    }
    5859
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/MultipleDocumentMainForm.cs

    r3394 r3395  
    3939      InitializeComponent();
    4040    }
    41     public MultipleDocumentMainForm(Type userInterfaceItemType, bool showInViewHost)
     41    public MultipleDocumentMainForm(Type userInterfaceItemType, bool showViewsInViewHost)
    4242      : this(userInterfaceItemType) {
    43       this.ShowInViewHost = showInViewHost;
     43      this.ShowViewsInViewHost = showViewsInViewHost;
    4444    }
    4545
     
    7575      Form form;
    7676      IContentView contentView = view as IContentView;
    77       if (ShowInViewHost && contentView != null && contentView.GetType() != typeof(ViewHost)) {
     77      if (ShowViewsInViewHost && contentView != null && contentView.GetType() != typeof(ViewHost)) {
    7878        ViewHost viewHost = new ViewHost(contentView.Content);
    7979        form = new DocumentForm(viewHost);
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/SingleDocumentMainForm.cs

    r3394 r3395  
    4040      InitializeComponent();
    4141    }
    42     public SingleDocumentMainForm(Type userInterfaceItemType, bool showInViewHost)
     42    public SingleDocumentMainForm(Type userInterfaceItemType, bool showViewsInViewHost)
    4343      : this(userInterfaceItemType) {
    44       this.ShowInViewHost = showInViewHost;
     44      this.ShowViewsInViewHost = showViewsInViewHost;
    4545    }
    4646
     
    6969      Form form;
    7070      IContentView contentView = view as IContentView;
    71       if (ShowInViewHost && contentView != null && contentView.GetType() != typeof(ViewHost)) {
     71      if (ShowViewsInViewHost && contentView != null && contentView.GetType() != typeof(ViewHost)) {
    7272        ViewHost viewHost = new ViewHost(contentView.Content);
    7373        form = new DocumentForm(viewHost);
Note: See TracChangeset for help on using the changeset viewer.