示例#1
0
        /// <summary>
        /// Initialise a new instance of the KryptonRibbonGroupLines class.
        /// </summary>
        public KryptonRibbonGroupLines()
        {
            // Default fields
            _visible         = true;
            _itemSizeMax     = GroupItemSize.Large;
            _itemSizeMin     = GroupItemSize.Small;
            _itemSizeCurrent = GroupItemSize.Large;

            // Create collection for holding triple items
            _ribbonLineItems           = new KryptonRibbonGroupLinesCollection();
            _ribbonLineItems.Clearing += new EventHandler(OnRibbonGroupLineClearing);
            _ribbonLineItems.Cleared  += new EventHandler(OnRibbonGroupLineCleared);
            _ribbonLineItems.Inserted += new TypedHandler <KryptonRibbonGroupItem>(OnRibbonGroupLineInserted);
            _ribbonLineItems.Removed  += new TypedHandler <KryptonRibbonGroupItem>(OnRibbonGroupLineRemoved);
        }
示例#2
0
        /// <summary>
        /// Initialise a new instance of the KryptonRibbonGroupLines class.
        /// </summary>
        public KryptonRibbonGroupLines()
        {
            // Default fields
            _visible         = true;
            _itemSizeMax     = GroupItemSize.Large;
            _itemSizeMin     = GroupItemSize.Small;
            _itemSizeCurrent = GroupItemSize.Large;

            // Create collection for holding triple items
            Items           = new KryptonRibbonGroupLinesCollection();
            Items.Clearing += OnRibbonGroupLineClearing;
            Items.Cleared  += OnRibbonGroupLineCleared;
            Items.Inserted += OnRibbonGroupLineInserted;
            Items.Removed  += OnRibbonGroupLineRemoved;
        }