Beispiel #1
0
 // Token: 0x06000239 RID: 569 RVA: 0x00007708 File Offset: 0x00005908
 private void method_0()
 {
     if (GControl11.smethod_3(this) && this.bool_0)
     {
         IEnumerator enumerator = GControl11.smethod_6(GControl11.smethod_5(GControl11.smethod_4(this)));
         try
         {
             while (GControl11.smethod_8(enumerator))
             {
                 Control control = (Control)GControl11.smethod_7(enumerator);
                 if (control != this)
                 {
                     if (control is GControl11)
                     {
                         ((GControl11)control).Boolean_0 = false;
                         GControl11.smethod_0(this);
                     }
                 }
             }
         }
         finally
         {
             IDisposable disposable = enumerator as IDisposable;
             if (disposable != null)
             {
                 GControl11.smethod_9(disposable);
             }
         }
         return;
     }
 }
Beispiel #2
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();
    }
Beispiel #3
0
 // Token: 0x06000242 RID: 578 RVA: 0x00007794 File Offset: 0x00005994
 public GControl11()
 {
     base.SetStyle(ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);
     this.DoubleBuffered = true;
     GControl11.smethod_12(this, GControl11.smethod_11());
     base.Size      = new Size(100, 22);
     this.BackColor = Color.FromArgb(60, 70, 73);
     this.Font      = new Font("Segoe UI", 10f);
 }
Beispiel #4
0
 // Token: 0x06000241 RID: 577 RVA: 0x00002F9B File Offset: 0x0000119B
 protected virtual void OnMouseLeave(EventArgs e)
 {
     base.OnMouseLeave(e);
     this.genum5_0 = GEnum5.None;
     GControl11.smethod_0(this);
 }
Beispiel #5
0
 // Token: 0x06000240 RID: 576 RVA: 0x00002F85 File Offset: 0x00001185
 protected virtual void OnMouseEnter(EventArgs e)
 {
     base.OnMouseEnter(e);
     this.genum5_0 = GEnum5.Over;
     GControl11.smethod_0(this);
 }
Beispiel #6
0
 // Token: 0x0600023E RID: 574 RVA: 0x00002F59 File Offset: 0x00001159
 protected virtual void OnMouseDown(MouseEventArgs e)
 {
     base.OnMouseDown(e);
     this.genum5_0 = GEnum5.Down;
     GControl11.smethod_0(this);
 }
Beispiel #7
0
 // Token: 0x0600023D RID: 573 RVA: 0x00002F48 File Offset: 0x00001148
 protected virtual void OnResize(EventArgs e)
 {
     base.OnResize(e);
     GControl11.smethod_10(this, 22);
 }