示例#1
0
        /// <summary>
        /// constructor
        /// </summary>
        public TRbtNavigationButton(CheckedChanging ACheckChangingDelegate)
        {
            InitializeComponent();
            #region CATALOGI18N

            // this code has been inserted by GenerateI18N, all changes in this region will be overwritten by GenerateI18N
            #endregion

            this.BorderColor       = FOpenPetraMenuColours.MenuBackgroundColour;
            this.GradientDirection = System.Drawing.Drawing2D.LinearGradientMode.Vertical;
            this.ShadowOffSet      = 0;
            this.RoundCornerRadius = 0;
            this.ImageLocation     = new System.Drawing.Point(7, 7);

            this.lblCaption.Enter      += new System.EventHandler(this.PanelEnter);
            this.lblCaption.Leave      += new System.EventHandler(this.PanelLeave);
            this.lblCaption.Click      += new System.EventHandler(this.PanelClick);
            this.lblCaption.MouseLeave += new System.EventHandler(this.PanelLeave);
            this.lblCaption.MouseEnter += new System.EventHandler(this.PanelEnter);
            this.MouseLeave            += new System.EventHandler(this.PanelLeave);
            this.MouseEnter            += new System.EventHandler(this.PanelEnter);
            this.Enter += new System.EventHandler(this.PanelEnter);
            this.Leave += new System.EventHandler(this.PanelLeave);
            this.Click += new System.EventHandler(this.PanelClick);

            SetStandardAppearance();

            FCheckChangingDelegate = ACheckChangingDelegate;
        }
        /// <summary>
        /// constructor
        /// </summary>
        public TRbtNavigationButton(CheckedChanging ACheckChangingDelegate)
        {
            InitializeComponent();
            #region CATALOGI18N

            // this code has been inserted by GenerateI18N, all changes in this region will be overwritten by GenerateI18N
            #endregion

            this.BorderColor = FOpenPetraMenuColours.MenuBackgroundColour;
            this.GradientDirection = System.Drawing.Drawing2D.LinearGradientMode.Vertical;
            this.ShadowOffSet = 0;
            this.RoundCornerRadius = 0;
            this.ImageLocation = new System.Drawing.Point(7, 7);

            this.lblCaption.Enter += new System.EventHandler(this.PanelEnter);
            this.lblCaption.Leave += new System.EventHandler(this.PanelLeave);
            this.lblCaption.Click += new System.EventHandler(this.PanelClick);
            this.lblCaption.MouseLeave += new System.EventHandler(this.PanelLeave);
            this.lblCaption.MouseEnter += new System.EventHandler(this.PanelEnter);
            this.MouseLeave += new System.EventHandler(this.PanelLeave);
            this.MouseEnter += new System.EventHandler(this.PanelEnter);
            this.Enter += new System.EventHandler(this.PanelEnter);
            this.Leave += new System.EventHandler(this.PanelLeave);
            this.Click += new System.EventHandler(this.PanelClick);

            SetStandardAppearance();

            FCheckChangingDelegate = ACheckChangingDelegate;
        }
 /// <summary>
 /// Raises the CheckedChanging event.
 /// </summary>
 /// <param name="e">A CancelEventArgs containing the event data.</param>
 protected virtual void OnCheckedChanging(CancelEventArgs e)
 {
     CheckedChanging?.Invoke(this, e);
 }