Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/04/13 10:15:31 (11 years ago)
Author:
jkarder
Message:

#2116:

  • fixed issues within the outermost control detection
  • fixed visible property assignment of the breadcrumb control in ViewHost
Location:
branches/Breadcrumbs/HeuristicLab.Optimization.Views/3.3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/Breadcrumbs/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionView.Designer.cs

    r9456 r10103  
    216216      this.viewHost.Caption = "View";
    217217      this.viewHost.Content = null;
     218      this.viewHost.IsValidOutermostViewhost = false;
    218219      this.viewHost.Location = new System.Drawing.Point(6, 19);
    219220      this.viewHost.Name = "viewHost";
  • branches/Breadcrumbs/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionView.cs

    r10093 r10103  
    245245        var mainForm = MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>();
    246246        var outermostViewHost = mainForm.ShowContentInOutermostViewHost(item, this, true);
    247         if (outermostViewHost.HotlinkingEnabled) {
     247        if (outermostViewHost != null && outermostViewHost.HotlinkingEnabled) {
    248248          outermostViewHost.ActiveView.ReadOnly = ReadOnly;
    249249          outermostViewHost.ActiveView.Locked = Locked;
     
    276276        var mainForm = MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>();
    277277        var outermostViewHost = mainForm.ShowContentInOutermostViewHost(item, this);
    278         outermostViewHost.ActiveView.ReadOnly = ReadOnly;
    279         outermostViewHost.ActiveView.Locked = Locked;
     278        if (outermostViewHost != null) {
     279          outermostViewHost.ActiveView.ReadOnly = ReadOnly;
     280          outermostViewHost.ActiveView.Locked = Locked;
     281        }
    280282      }
    281283    }
  • branches/Breadcrumbs/HeuristicLab.Optimization.Views/3.3/RunView.Designer.cs

    r9456 r10103  
    178178      this.viewHost.Content = null;
    179179      this.viewHost.Enabled = false;
     180      this.viewHost.IsValidOutermostViewhost = false;
    180181      this.viewHost.Location = new System.Drawing.Point(6, 19);
    181182      this.viewHost.Name = "viewHost";
  • branches/Breadcrumbs/HeuristicLab.Optimization.Views/3.3/RunView.cs

    r10093 r10103  
    132132        var mainForm = MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>();
    133133        var outermostViewHost = mainForm.ShowContentInOutermostViewHost(item, this, true);
    134         if (outermostViewHost.HotlinkingEnabled) {
     134        if (outermostViewHost != null && outermostViewHost.HotlinkingEnabled) {
    135135          outermostViewHost.ActiveView.ReadOnly = ReadOnly;
    136136          outermostViewHost.ActiveView.Locked = Locked;
     
    151151        var mainForm = MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>();
    152152        var outermostViewHost = mainForm.ShowContentInOutermostViewHost(item, this);
    153         outermostViewHost.ActiveView.ReadOnly = ReadOnly;
    154         outermostViewHost.ActiveView.Locked = Locked;
     153        if (outermostViewHost != null) {
     154          outermostViewHost.ActiveView.ReadOnly = ReadOnly;
     155          outermostViewHost.ActiveView.Locked = Locked;
     156        }
    155157      }
    156158    }
Note: See TracChangeset for help on using the changeset viewer.