Example #1
0
 public RibbonGroup(string id)
 {
     Id = id;
     Controls = new RibbonControls(id + ".Controls");
     MaxSizes = new List<RibbonMaxSize>();
     Scales = new List<RibbonScale>();
 }
        //*************************************************************************
        //  Constructor: RibbonControlsChangedEventArgs()
        //
        /// <summary>
        /// Initializes a new instance of the <see
        /// cref="RibbonControlsChangedEventArgs" /> class.
        /// </summary>
        ///
        /// <param name="ribbonControls">
        /// The controls in the ribbon whose states have changed.
        /// </param>
        //*************************************************************************
        public RibbonControlsChangedEventArgs(
            RibbonControls ribbonControls
            )
        {
            m_eRibbonControls = ribbonControls;

            AssertValid();
        }
Example #3
0
        //*************************************************************************
        //  Constructor: RibbonControlsChangedEventArgs()
        //
        /// <summary>
        /// Initializes a new instance of the <see
        /// cref="RibbonControlsChangedEventArgs" /> class.
        /// </summary>
        ///
        /// <param name="ribbonControls">
        /// The controls in the ribbon whose states have changed.
        /// </param>
        //*************************************************************************

        public RibbonControlsChangedEventArgs
        (
            RibbonControls ribbonControls
        )
        {
            m_eRibbonControls = ribbonControls;

            AssertValid();
        }
Example #4
0
        //*************************************************************************
        //  Method: FireRibbonControlsChangedEvent()
        //
        /// <summary>
        /// Fires the <see cref="RibbonControlsChanged" /> event if appropriate.
        /// </summary>
        ///
        /// <param name="eRibbonControls">
        /// The controls in the ribbon whose states have changed.
        /// </param>
        //*************************************************************************
        protected void FireRibbonControlsChangedEvent(
            RibbonControls eRibbonControls
            )
        {
            AssertValid();

            RibbonControlsChangedEventHandler oRibbonControlsChanged =
            this.RibbonControlsChanged;

            if (oRibbonControlsChanged != null)
            {
            oRibbonControlsChanged( this,
                new RibbonControlsChangedEventArgs(eRibbonControls) );
            }
        }