Esempio n. 1
0
    // Token: 0x06000243 RID: 579 RVA: 0x00007830 File Offset: 0x00005A30
    protected virtual void OnPaint(PaintEventArgs e)
    {
        this.method_1();
        Bitmap   bitmap   = GControl11.smethod_15(GControl11.smethod_13(this), GControl11.smethod_14(this));
        Graphics graphics = GControl11.smethod_16(bitmap);

        this.int_0 = GControl11.smethod_13(this) - 1;
        this.int_1 = GControl11.smethod_14(this) - 1;
        Rectangle rectangle_  = new Rectangle(0, 2, GControl11.smethod_14(this) - 5, GControl11.smethod_14(this) - 5);
        Rectangle rectangle_2 = new Rectangle(4, 6, this.int_1 - 12, this.int_1 - 12);
        Graphics  graphics2   = graphics;

        GControl11.smethod_17(graphics2, SmoothingMode.HighQuality);
        GControl11.smethod_18(graphics2, TextRenderingHint.ClearTypeGridFit);
        GControl11.smethod_20(graphics2, GControl11.smethod_19(this));
        GControl11.GEnum2 genum = this.genum2_0;
        if (genum == GControl11.GEnum2.Style1)
        {
            GControl11.smethod_22(graphics2, GControl11.smethod_21(this.color_0), rectangle_);
            GEnum5 genum2 = this.genum5_0;
            if (genum2 == GEnum5.Over)
            {
                GControl11.smethod_24(graphics2, GControl11.smethod_23(this.color_1), rectangle_);
            }
            else if (genum2 == GEnum5.Down)
            {
                GControl11.smethod_24(graphics2, GControl11.smethod_23(this.color_1), rectangle_);
            }
            if (this.Boolean_0)
            {
                GControl11.smethod_22(graphics2, GControl11.smethod_21(this.color_1), rectangle_2);
            }
        }
        else if (genum == GControl11.GEnum2.Style2)
        {
            GControl11.smethod_22(graphics2, GControl11.smethod_21(this.color_0), rectangle_);
            GEnum5 genum2 = this.genum5_0;
            if (genum2 == GEnum5.Over)
            {
                GControl11.smethod_24(graphics2, GControl11.smethod_23(this.color_1), rectangle_);
                GControl11.smethod_22(graphics2, GControl11.smethod_21(Color.FromArgb(118, 213, 170)), rectangle_);
            }
            else if (genum2 == GEnum5.Down)
            {
                GControl11.smethod_24(graphics2, GControl11.smethod_23(this.color_1), rectangle_);
                GControl11.smethod_22(graphics2, GControl11.smethod_21(Color.FromArgb(118, 213, 170)), rectangle_);
            }
            if (this.Boolean_0)
            {
                GControl11.smethod_22(graphics2, GControl11.smethod_21(this.color_1), rectangle_2);
            }
        }
        graphics2.DrawString(GControl11.smethod_25(this), GControl11.smethod_26(this), GControl11.smethod_21(this.color_2), new Rectangle(20, 2, this.int_0, this.int_1), GClass6.stringFormat_0);
        base.OnPaint(e);
        graphics.Dispose();
        e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
        e.Graphics.DrawImageUnscaled(bitmap, 0, 0);
        bitmap.Dispose();
    }
Esempio n. 2
0
    // Token: 0x06000130 RID: 304 RVA: 0x002600A0 File Offset: 0x0025E2A0
    protected virtual void OnPaint(PaintEventArgs e)
    {
        this.method_1();
        Bitmap   bitmap   = new Bitmap(base.Width, base.Height);
        Graphics graphics = Graphics.FromImage(bitmap);

        this.int_0 = base.Width - 1;
        this.int_1 = base.Height - 1;
        Rectangle rect      = new Rectangle(0, 2, base.Height - 5, base.Height - 5);
        Rectangle rect2     = new Rectangle(4, 6, this.int_1 - 12, this.int_1 - 12);
        Graphics  graphics2 = graphics;

        graphics2.SmoothingMode     = SmoothingMode.HighQuality;
        graphics2.TextRenderingHint = TextRenderingHint.ClearTypeGridFit;
        graphics2.Clear(this.BackColor);
        GControl11.GEnum2 genum = this.genum2_0;
        if (genum != GControl11.GEnum2.Style1)
        {
            if (genum == GControl11.GEnum2.Style2)
            {
                graphics2.FillEllipse(new SolidBrush(this.color_0), rect);
                GEnum5 genum2 = this.genum5_0;
                if (genum2 == GEnum5.Over)
                {
                    graphics2.DrawEllipse(new Pen(this.color_1), rect);
                    graphics2.FillEllipse(new SolidBrush(Color.FromArgb(118, 213, 170)), rect);
                }
                else if (genum2 == GEnum5.Down)
                {
                    graphics2.DrawEllipse(new Pen(this.color_1), rect);
                    graphics2.FillEllipse(new SolidBrush(Color.FromArgb(118, 213, 170)), rect);
                }
                if (this.Boolean_0)
                {
                    graphics2.FillEllipse(new SolidBrush(this.color_1), rect2);
                }
            }
        }
        else
        {
            graphics2.FillEllipse(new SolidBrush(this.color_0), rect);
            GEnum5 genum2 = this.genum5_0;
            if (genum2 != GEnum5.Over)
            {
                if (genum2 == GEnum5.Down)
                {
                    graphics2.DrawEllipse(new Pen(this.color_1), rect);
                }
            }
            else
            {
                graphics2.DrawEllipse(new Pen(this.color_1), rect);
            }
            if (this.Boolean_0)
            {
                graphics2.FillEllipse(new SolidBrush(this.color_1), rect2);
            }
        }
        graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_2), new Rectangle(20, 2, this.int_0, this.int_1), GClass6.stringFormat_0);
        base.OnPaint(e);
        graphics.Dispose();
        e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
        e.Graphics.DrawImageUnscaled(bitmap, 0, 0);
        bitmap.Dispose();
    }