コード例 #1
0
ファイル: GControl10.cs プロジェクト: x1234xx/ProstoLoader
 // Token: 0x06000222 RID: 546 RVA: 0x0000731C File Offset: 0x0000551C
 public GControl10()
 {
     base.SetStyle(ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);
     this.DoubleBuffered = true;
     GControl10.smethod_2(this, Color.FromArgb(60, 70, 73));
     GControl10.smethod_1(this, 42);
 }
コード例 #2
0
ファイル: GControl10.cs プロジェクト: x1234xx/ProstoLoader
    // 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();
    }
コード例 #3
0
ファイル: GControl10.cs プロジェクト: x1234xx/ProstoLoader
 // Token: 0x06000220 RID: 544 RVA: 0x00002EC0 File Offset: 0x000010C0
 protected virtual void CreateHandle()
 {
     base.CreateHandle();
     GControl10.smethod_1(this, 42);
 }
コード例 #4
0
ファイル: GControl10.cs プロジェクト: x1234xx/ProstoLoader
 // Token: 0x0600021F RID: 543 RVA: 0x00002EAF File Offset: 0x000010AF
 protected virtual void OnResize(EventArgs e)
 {
     base.OnResize(e);
     GControl10.smethod_1(this, 42);
 }