Example #1
0
        /// <summary>
        /// Initializes the Control for the first time
        /// </summary>
        private void Initialize()
        {
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.ResizeRedraw, true);

            bands              = new NaviBandCollection();
            bands.ItemAdded   += new CollectionEventHandler(bands_ItemAdded);
            bands.ItemRemoved += new CollectionEventHandler(bands_ItemRemoved);
            buttons            = new NaviButtonCollection();
        }
        /// <summary>
        /// Initializes the control for the first time
        /// </summary>
        private void Initialize()
        {
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.ResizeRedraw, true);

            bands         = new NaviBandCollection(this);
            layoutFactory = new NaviLayoutFactory(this);
            smallImages   = new ImageList();
            largeImages   = new ImageList();
        }