Exemplo n.º 1
0
 /// <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;
     }
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
        /// <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 });
        }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the NaviBandCollection class
 /// </summary>
 public NaviBandCollection(NaviBar owner)
     : base()
 {
     this.owner = owner;
     innerList  = new ArrayList();
 }
Exemplo n.º 5
0
 /// <summary>
 /// Intializes a new instance of the NaviLayoutEngine class
 /// </summary>
 /// <param name="owner">The Bar owner</param>
 public NaviLayoutEngine(NaviBar owner)
 {
     ownerBar = owner;
 }
Exemplo n.º 6
0
 public NaviLayoutEngineOffice(NaviBar owner)
     : base(owner)
 {
 }
Exemplo n.º 7
0
 public override void Initialize(IComponent component)
 {
     base.Initialize(component);
     designingControl = component as NaviBar;
     InitializeServices();
 }