/// <summary> /// Initializes a new instance of the NaviControlCollection class /// </summary> /// <param name="owner">The parent control</param> public NaviControlCollection(Control owner) : base(owner) { if (owner is NaviBar) { ownerBar = (NaviBar)owner; } }
public void Initialize(NaviBar bar) { this.bar = bar; checkedListBoxBands.Items.Clear(); foreach (NaviBand band in bar.Bands) { checkedListBoxBands.Items.Add(band.Text, band.Visible); } Translate(); }
/// <summary> /// Creates a new instance of the NaviBar component with design time support /// </summary> /// <param name="host">The controls host</param> /// <returns>The newly created component</returns> protected override IComponent[] CreateComponentsCore(IDesignerHost host) { // Create the control NaviBar naviBarCtrl = (NaviBar)host.CreateComponent(typeof(NaviBar)); NaviBand naviBandCtrl = (NaviBand)host.CreateComponent(typeof(NaviBand)); // Add a new button naviBarCtrl.Controls.Add(naviBandCtrl); return(new IComponent[] { naviBarCtrl }); }
/// <summary> /// Initializes a new instance of the NaviBandCollection class /// </summary> public NaviBandCollection(NaviBar owner) : base() { this.owner = owner; innerList = new ArrayList(); }
/// <summary> /// Intializes a new instance of the NaviLayoutEngine class /// </summary> /// <param name="owner">The Bar owner</param> public NaviLayoutEngine(NaviBar owner) { ownerBar = owner; }
public NaviLayoutEngineOffice(NaviBar owner) : base(owner) { }
public override void Initialize(IComponent component) { base.Initialize(component); designingControl = component as NaviBar; InitializeServices(); }