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