Ejemplo n.º 1
0
    // Token: 0x06000158 RID: 344 RVA: 0x00006448 File Offset: 0x00004648
    protected virtual void OnPaint(PaintEventArgs e)
    {
        this.method_0();
        Bitmap   bitmap   = GControl5.smethod_3(GControl5.smethod_1(this), GControl5.smethod_2(this));
        Graphics graphics = GControl5.smethod_4(bitmap);

        this.int_0 = GControl5.smethod_1(this) - 1;
        this.int_1 = GControl5.smethod_2(this) - 1;
        GraphicsPath graphicsPath_  = GControl5.smethod_5();
        GraphicsPath graphicsPath_2 = GControl5.smethod_5();
        GraphicsPath graphicsPath_3 = GControl5.smethod_5();
        Rectangle    rectangle_     = new Rectangle(8, 8, this.int_0 - 16, this.int_1 - 16);
        Graphics     graphics2      = graphics;

        GControl5.smethod_6(graphics2, SmoothingMode.HighQuality);
        GControl5.smethod_7(graphics2, PixelOffsetMode.HighQuality);
        GControl5.smethod_8(graphics2, TextRenderingHint.ClearTypeGridFit);
        GControl5.smethod_10(graphics2, GControl5.smethod_9(this));
        graphicsPath_ = GClass6.smethod_0(rectangle_, 8);
        GControl5.smethod_12(graphics2, GControl5.smethod_11(this.color_0), graphicsPath_);
        graphicsPath_2 = GClass6.smethod_2(28, 2, false);
        GControl5.smethod_12(graphics2, GControl5.smethod_11(this.color_0), graphicsPath_2);
        graphicsPath_3 = GClass6.smethod_2(28, 8, true);
        GControl5.smethod_12(graphics2, GControl5.smethod_11(Color.FromArgb(60, 70, 73)), graphicsPath_3);
        if (this.Boolean_0)
        {
            graphics2.DrawString(GControl5.smethod_13(this), GControl5.smethod_14(this), GControl5.smethod_11(this.color_1), new Rectangle(16, 16, 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();
    }
Ejemplo n.º 2
0
    // Token: 0x060000CC RID: 204 RVA: 0x0025E4F4 File Offset: 0x0025C6F4
    protected virtual void OnPaint(PaintEventArgs e)
    {
        this.method_0();
        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;
        GraphicsPath path       = new GraphicsPath();
        GraphicsPath path2      = new GraphicsPath();
        GraphicsPath path3      = new GraphicsPath();
        Rectangle    rectangle_ = new Rectangle(8, 8, this.int_0 - 16, this.int_1 - 16);
        Graphics     graphics2  = graphics;

        graphics2.SmoothingMode     = SmoothingMode.HighQuality;
        graphics2.PixelOffsetMode   = PixelOffsetMode.HighQuality;
        graphics2.TextRenderingHint = TextRenderingHint.ClearTypeGridFit;
        graphics2.Clear(this.BackColor);
        path = GClass6.smethod_0(rectangle_, 8);
        graphics2.FillPath(new SolidBrush(this.color_0), path);
        path2 = GClass6.smethod_2(28, 2, false);
        graphics2.FillPath(new SolidBrush(this.color_0), path2);
        path3 = GClass6.smethod_2(28, 8, true);
        graphics2.FillPath(new SolidBrush(Color.FromArgb(60, 70, 73)), path3);
        if (this.Boolean_0)
        {
            graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), new Rectangle(16, 16, 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();
    }
Ejemplo n.º 3
0
    // Token: 0x06000223 RID: 547 RVA: 0x000073A4 File Offset: 0x000055A4
    protected virtual void OnPaint(PaintEventArgs e)
    {
        this.method_1();
        Bitmap   bitmap   = GControl10.smethod_5(GControl10.smethod_3(this), GControl10.smethod_4(this));
        Graphics graphics = GControl10.smethod_6(bitmap);

        this.int_0 = GControl10.smethod_3(this) - 1;
        this.int_1 = GControl10.smethod_4(this) - 1;
        Rectangle    rectangle    = new Rectangle(0, 24, this.int_0, this.int_1);
        GraphicsPath graphicsPath = GControl10.smethod_7();
        GraphicsPath path         = GControl10.smethod_7();
        GraphicsPath path2        = GControl10.smethod_7();
        Graphics     graphics2    = graphics;

        GControl10.smethod_8(graphics2, SmoothingMode.HighQuality);
        GControl10.smethod_9(graphics2, PixelOffsetMode.HighQuality);
        GControl10.smethod_10(graphics2, TextRenderingHint.ClearTypeGridFit);
        GControl10.smethod_12(graphics2, GControl10.smethod_11(this));
        int num    = (int)((float)this.int_2 / (float)this.int_3 * (float)GControl10.smethod_3(this));
        int int32_ = this.Int32_1;

        if (int32_ == 0)
        {
            GControl10.smethod_14(graphics2, GControl10.smethod_13(this.color_0), rectangle);
            graphics2.FillRectangle(GControl10.smethod_13(this.color_1), new Rectangle(0, 24, num - 1, this.int_1 - 1));
        }
        else if (int32_ == 100)
        {
            graphics2.FillRectangle(new SolidBrush(this.color_0), rectangle);
            graphics2.FillRectangle(new SolidBrush(this.color_1), new Rectangle(0, 24, num - 1, this.int_1 - 1));
        }
        else
        {
            graphics2.FillRectangle(new SolidBrush(this.color_0), rectangle);
            graphicsPath.AddRectangle(new Rectangle(0, 24, num - 1, this.int_1 - 1));
            graphics2.FillPath(new SolidBrush(this.color_1), graphicsPath);
            if (this.bool_0)
            {
                HatchBrush brush = new HatchBrush(HatchStyle.Plaid, this.color_2, this.color_1);
                graphics2.FillRectangle(brush, new Rectangle(0, 24, num - 1, this.int_1 - 1));
            }
            if (this.bool_1)
            {
                path = GClass6.smethod_0(new Rectangle(num - 18, 0, 34, 16), 4);
                graphics2.FillPath(new SolidBrush(this.color_0), path);
                path2 = GClass6.smethod_2(num - 9, 16, true);
                graphics2.FillPath(new SolidBrush(this.color_0), path2);
                string s = this.bool_2 ? (this.Int32_1.ToString() + "%") : this.Int32_1.ToString();
                int    x = this.bool_2 ? (num - 15) : (num - 11);
                graphics2.DrawString(s, new Font("Segoe UI", 10f), new SolidBrush(this.color_1), new Rectangle(x, -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();
    }
Ejemplo n.º 4
0
    // Token: 0x0600011F RID: 287 RVA: 0x0025FADC File Offset: 0x0025DCDC
    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, 24, this.int_0, this.int_1);
        GraphicsPath graphicsPath = new GraphicsPath();
        GraphicsPath path         = new GraphicsPath();
        GraphicsPath path2        = new GraphicsPath();
        Graphics     graphics2    = graphics;

        graphics2.SmoothingMode     = SmoothingMode.HighQuality;
        graphics2.PixelOffsetMode   = PixelOffsetMode.HighQuality;
        graphics2.TextRenderingHint = TextRenderingHint.ClearTypeGridFit;
        graphics2.Clear(this.BackColor);
        int num    = (int)((float)this.int_2 / (float)this.int_3 * (float)base.Width);
        int int32_ = this.Int32_1;

        if (int32_ == 0)
        {
            graphics2.FillRectangle(new SolidBrush(this.color_0), rect);
            graphics2.FillRectangle(new SolidBrush(this.color_1), new Rectangle(0, 24, num - 1, this.int_1 - 1));
        }
        else if (int32_ == 100)
        {
            graphics2.FillRectangle(new SolidBrush(this.color_0), rect);
            graphics2.FillRectangle(new SolidBrush(this.color_1), new Rectangle(0, 24, num - 1, this.int_1 - 1));
        }
        else
        {
            graphics2.FillRectangle(new SolidBrush(this.color_0), rect);
            graphicsPath.AddRectangle(new Rectangle(0, 24, num - 1, this.int_1 - 1));
            graphics2.FillPath(new SolidBrush(this.color_1), graphicsPath);
            if (this.bool_0)
            {
                HatchBrush brush = new HatchBrush(HatchStyle.Plaid, this.color_2, this.color_1);
                graphics2.FillRectangle(brush, new Rectangle(0, 24, num - 1, this.int_1 - 1));
            }
            if (this.bool_1)
            {
                path = GClass6.smethod_0(new Rectangle(num - 18, 0, 34, 16), 4);
                graphics2.FillPath(new SolidBrush(this.color_0), path);
                path2 = GClass6.smethod_2(num - 9, 16, true);
                graphics2.FillPath(new SolidBrush(this.color_0), path2);
                string s = this.bool_2 ? (this.Int32_1.ToString() + "%") : this.Int32_1.ToString();
                int    x = this.bool_2 ? (num - 15) : (num - 11);
                graphics2.DrawString(s, new Font("Segoe UI", 10f), new SolidBrush(this.color_1), new Rectangle(x, -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();
    }