Ejemplo n.º 1
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing)
     {
         if (this._controlBoxManager != null)
         {
             this._controlBoxManager.Dispose();
             this._controlBoxManager = null;
         }
         this._renderer = null;
         this._toolTip.Dispose();
     }
 }
Ejemplo n.º 2
0
        public void ApplayTheme(string theme)
        {
            string text = theme.ToUpper();

            if (text != null)
            {
                if (text == "CUSTOM")
                {
                    ToolStripManager.Renderer = new EasyRender_CustomTheme.EasyRender();
                    this._renderer            = new SkinFormProfessionalRenderer(new SkinFormColorTable_CustomTheme());
                    goto IL_61;
                }
                if (!(text == "VS2010"))
                {
                }
            }
            ToolStripManager.Renderer = new EasyRender_VS2010Theme.EasyRender();
            this._renderer            = new SkinFormProfessionalRenderer(new SkinFormColorTable_VS2010Theme());
IL_61:
            this.SetStyles();
            this.Init();
        }
Ejemplo n.º 3
0
        protected override void OnPaint(PaintEventArgs e)
        {
            Graphics         graphics        = e.Graphics;
            Rectangle        clientRectangle = base.ClientRectangle;
            SkinFormRenderer renderer        = this.Renderer;

            renderer.DrawSkinFormBackground(new SkinFormBackgroundRenderEventArgs(this, graphics, clientRectangle));
            renderer.DrawSkinFormCaption(new SkinFormCaptionRenderEventArgs(this, graphics, this.CaptionRect, this._active));
            renderer.DrawSkinFormBorder(new SkinFormBorderRenderEventArgs(this, graphics, clientRectangle, this._active));
            if (this.ControlBoxManager.CloseBoxVisibale)
            {
                renderer.DrawSkinFormControlBox(new SkinFormControlBoxRenderEventArgs(this, graphics, this.ControlBoxManager.CloseBoxRect, this._active, ControlBoxStyle.Close, this.ControlBoxManager.CloseBoxState));
            }
            if (this.ControlBoxManager.MaximizeBoxVisibale)
            {
                renderer.DrawSkinFormControlBox(new SkinFormControlBoxRenderEventArgs(this, graphics, this.ControlBoxManager.MaximizeBoxRect, this._active, ControlBoxStyle.Maximize, this.ControlBoxManager.MaximizeBoxState));
            }
            if (this.ControlBoxManager.MinimizeBoxVisibale)
            {
                renderer.DrawSkinFormControlBox(new SkinFormControlBoxRenderEventArgs(this, graphics, this.ControlBoxManager.MinimizeBoxRect, this._active, ControlBoxStyle.Minimize, this.ControlBoxManager.MinimizeBoxState));
            }
        }