예제 #1
0
파일: GControl2.cs 프로젝트: zha0/Cerberus
 // Token: 0x0600009B RID: 155 RVA: 0x000056DC File Offset: 0x000038DC
 public GControl2()
 {
     base.SetStyle(ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);
     this.DoubleBuffered = true;
     GControl2.smethod_4(this, Color.FromArgb(60, 70, 73));
     GControl2.smethod_6(this, GControl2.smethod_5());
     GControl2.smethod_8(this, GControl2.smethod_7("Segoe UI", 10f));
     base.Size = new Size(112, 22);
 }
예제 #2
0
파일: GControl2.cs 프로젝트: zha0/Cerberus
 // Token: 0x06000092 RID: 146 RVA: 0x00002524 File Offset: 0x00000724
 protected virtual void OnResize(EventArgs e)
 {
     base.OnResize(e);
     GControl2.smethod_3(this, 22);
 }
예제 #3
0
파일: GControl2.cs 프로젝트: zha0/Cerberus
    // Token: 0x0600009C RID: 156 RVA: 0x00005778 File Offset: 0x00003978
    protected virtual void OnPaint(PaintEventArgs e)
    {
        this.method_0();
        Bitmap   bitmap   = GControl2.smethod_11(GControl2.smethod_9(this), GControl2.smethod_10(this));
        Graphics graphics = GControl2.smethod_12(bitmap);

        this.int_0 = GControl2.smethod_9(this) - 1;
        this.int_1 = GControl2.smethod_10(this) - 1;
        Rectangle rectangle = new Rectangle(0, 2, GControl2.smethod_10(this) - 5, GControl2.smethod_10(this) - 5);
        Graphics  graphics2 = graphics;

        GControl2.smethod_13(graphics2, SmoothingMode.HighQuality);
        GControl2.smethod_14(graphics2, TextRenderingHint.ClearTypeGridFit);
        GControl2.smethod_16(graphics2, GControl2.smethod_15(this));
        GControl2.GEnum1 genum = this.genum1_0;
        if (genum != GControl2.GEnum1.Style1)
        {
            if (genum == GControl2.GEnum1.Style2)
            {
                graphics2.FillRectangle(new SolidBrush(this.color_0), rectangle);
                GEnum5 genum2 = this.genum5_0;
                if (genum2 == GEnum5.Over)
                {
                    graphics2.DrawRectangle(new Pen(this.color_2), rectangle);
                    graphics2.FillRectangle(new SolidBrush(Color.FromArgb(118, 213, 170)), rectangle);
                }
                else if (genum2 == GEnum5.Down)
                {
                    graphics2.DrawRectangle(new Pen(this.color_2), rectangle);
                    graphics2.FillRectangle(new SolidBrush(Color.FromArgb(118, 213, 170)), rectangle);
                }
                if (this.Boolean_0)
                {
                    graphics2.DrawString("ü", new Font("Wingdings", 18f), new SolidBrush(this.color_2), new Rectangle(5, 7, this.int_1 - 9, this.int_1 - 9), GClass6.stringFormat_1);
                }
                if (!base.Enabled)
                {
                    graphics2.FillRectangle(new SolidBrush(Color.FromArgb(54, 58, 61)), rectangle);
                    graphics2.DrawString(this.Text, this.Font, new SolidBrush(Color.FromArgb(48, 119, 91)), new Rectangle(20, 2, this.int_0, this.int_1), GClass6.stringFormat_0);
                }
                graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), new Rectangle(20, 2, this.int_0, this.int_1), GClass6.stringFormat_0);
            }
        }
        else
        {
            GControl2.smethod_18(graphics2, GControl2.smethod_17(this.color_0), rectangle);
            GEnum5 genum2 = this.genum5_0;
            if (genum2 == GEnum5.Over)
            {
                GControl2.smethod_20(graphics2, GControl2.smethod_19(this.color_2), rectangle);
            }
            else if (genum2 == GEnum5.Down)
            {
                GControl2.smethod_20(graphics2, GControl2.smethod_19(this.color_2), rectangle);
            }
            if (this.Boolean_0)
            {
                graphics2.DrawString("ü", GControl2.smethod_7("Wingdings", 18f), GControl2.smethod_17(this.color_2), new Rectangle(5, 7, this.int_1 - 9, this.int_1 - 9), GClass6.stringFormat_1);
            }
            if (!base.Enabled)
            {
                graphics2.FillRectangle(new SolidBrush(Color.FromArgb(54, 58, 61)), rectangle);
                graphics2.DrawString(this.Text, this.Font, new SolidBrush(Color.FromArgb(140, 142, 143)), new Rectangle(20, 2, this.int_0, this.int_1), GClass6.stringFormat_0);
            }
            graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), 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();
    }
예제 #4
0
파일: GControl2.cs 프로젝트: zha0/Cerberus
 // Token: 0x0600009A RID: 154 RVA: 0x00002599 File Offset: 0x00000799
 protected virtual void OnMouseLeave(EventArgs e)
 {
     base.OnMouseLeave(e);
     this.genum5_0 = GEnum5.None;
     GControl2.smethod_0(this);
 }
예제 #5
0
파일: GControl2.cs 프로젝트: zha0/Cerberus
 // Token: 0x06000099 RID: 153 RVA: 0x00002583 File Offset: 0x00000783
 protected virtual void OnMouseEnter(EventArgs e)
 {
     base.OnMouseEnter(e);
     this.genum5_0 = GEnum5.Over;
     GControl2.smethod_0(this);
 }
예제 #6
0
파일: GControl2.cs 프로젝트: zha0/Cerberus
 // Token: 0x0600008A RID: 138 RVA: 0x000024C1 File Offset: 0x000006C1
 protected virtual void OnTextChanged(EventArgs e)
 {
     base.OnTextChanged(e);
     GControl2.smethod_0(this);
 }
예제 #7
0
파일: GControl2.cs 프로젝트: zha0/Cerberus
 // Token: 0x06000097 RID: 151 RVA: 0x00002557 File Offset: 0x00000757
 protected virtual void OnMouseDown(MouseEventArgs e)
 {
     base.OnMouseDown(e);
     this.genum5_0 = GEnum5.Down;
     GControl2.smethod_0(this);
 }