Exemple #1
0
        private void MainForm_OnSkinButtonClick(object sender, BtnEventArgs e)
        {
            frmSkinManager frm = new frmSkinManager();

            frm.ShowDialog();
            frm.Dispose();
        }
Exemple #2
0
        protected override void ProcessMouseUp(Point p)
        {
            if (!this.RibbonBtnRect.IsEmpty && this.RibbonBtnRect.Contains(p))
            {
                this._RibbonBtnState = EnumControlState.Default;
                if (this.OnRibbonButtonClick != null)
                {
                    BtnEventArgs e = new BtnEventArgs(this.RibbonBtnRect);
                    this.OnRibbonButtonClick(null, e);
                }
            }

            if (!this.SkinBoxRect.IsEmpty && this.SkinBoxRect.Contains(p))
            {
                this._SkinBtnState = EnumControlState.Default;
                if (this.OnSkinButtonClick != null)
                {
                    BtnEventArgs e = new BtnEventArgs(this.SkinBoxRect);
                    this.OnSkinButtonClick(null, e);
                }
            }

            base.ProcessMouseUp(p);
        }