/// <summary> /// Initializes the specified bar. /// </summary> /// <param name="bar">The bar.</param> public void Initialize(ZeroitNaviBar bar) { this.bar = bar; checkedListBox1.Items.Clear(); foreach (NaviBand band in bar.Bands) { checkedListBox1.Items.Add(band.Text, band.Visible); } }
/// <summary> /// Initializes the designer with the specified component. /// </summary> /// <param name="component">The <see cref="T:System.ComponentModel.IComponent" /> to associate with the designer.</param> public override void Initialize(IComponent component) { base.Initialize(component); designingControl = component as ZeroitNaviBar; InitializeServices(); }