Esempio n. 1
0
    // Token: 0x060001FB RID: 507 RVA: 0x00007168 File Offset: 0x00005368
    protected virtual void OnPaint(PaintEventArgs e)
    {
        this.method_0();
        Bitmap   bitmap   = GControl9.smethod_11(GControl9.smethod_2(this), GControl9.smethod_10(this));
        Graphics graphics = GControl9.smethod_12(bitmap);

        this.int_0 = GControl9.smethod_2(this);
        this.int_1 = GControl9.smethod_10(this);
        Rectangle rectangle_ = new Rectangle(0, 0, this.int_0, this.int_1);

        GControl9.smethod_13(graphics, SmoothingMode.HighQuality);
        GControl9.smethod_14(graphics, PixelOffsetMode.HighQuality);
        GControl9.smethod_15(graphics, TextRenderingHint.ClearTypeGridFit);
        GControl9.smethod_17(graphics, GControl9.smethod_16(this));
        GControl9.smethod_19(graphics, GControl9.smethod_18(this.color_0), rectangle_);
        graphics.FillRectangle(GControl9.smethod_18(this.color_1), new Rectangle(GControl9.smethod_2(this) - 24, 0, 24, this.int_1));
        graphics.DrawString("+", new Font("Segoe UI", 12f), Brushes.White, new Point(base.Width - 12, 8), GClass6.stringFormat_1);
        graphics.DrawString("-", new Font("Segoe UI", 10f, FontStyle.Bold), Brushes.White, new Point(base.Width - 12, 22), GClass6.stringFormat_1);
        graphics.DrawString(this.Int64_0.ToString(), this.Font, Brushes.White, new Rectangle(5, 1, this.int_0, this.int_1), new StringFormat
        {
            LineAlignment = StringAlignment.Center
        });
        base.OnPaint(e);
        graphics.Dispose();
        e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
        e.Graphics.DrawImageUnscaled(bitmap, 0, 0);
        bitmap.Dispose();
    }
Esempio n. 2
0
 // Token: 0x060001F4 RID: 500 RVA: 0x00002D9F File Offset: 0x00000F9F
 protected virtual void OnKeyDown(KeyEventArgs e)
 {
     base.OnKeyDown(e);
     if (GControl9.smethod_4(e) == Keys.Back)
     {
         this.Int64_0 = 0L;
     }
 }
Esempio n. 3
0
 // Token: 0x060001FA RID: 506 RVA: 0x000070D4 File Offset: 0x000052D4
 public GControl9()
 {
     base.SetStyle(ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);
     this.DoubleBuffered = true;
     GControl9.smethod_7(this, GControl9.smethod_6("Segoe UI", 10f));
     GControl9.smethod_8(this, Color.FromArgb(60, 70, 73));
     GControl9.smethod_9(this, Color.White);
     this.long_1 = 0L;
     this.long_2 = 9999999L;
 }
Esempio n. 4
0
 // Token: 0x060001F1 RID: 497 RVA: 0x00006F30 File Offset: 0x00005130
 protected virtual void OnMouseMove(MouseEventArgs e)
 {
     base.OnMouseMove(e);
     this.int_2 = GControl9.smethod_1(e).X;
     this.int_3 = e.Location.Y;
     base.Invalidate();
     if (e.X < base.Width - 23)
     {
         this.Cursor = Cursors.IBeam;
         return;
     }
     this.Cursor = Cursors.Hand;
 }
Esempio n. 5
0
 // Token: 0x060001F2 RID: 498 RVA: 0x00006F9C File Offset: 0x0000519C
 protected virtual void OnMouseDown(MouseEventArgs e)
 {
     base.OnMouseDown(e);
     if (this.int_2 > GControl9.smethod_2(this) - 21 && this.int_2 < GControl9.smethod_2(this) - 3)
     {
         if (this.int_3 >= 15)
         {
             if (this.Int64_0 - 1L >= this.long_1)
             {
                 this.long_0 -= 1L;
             }
         }
         else if (this.Int64_0 + 1L <= this.long_2)
         {
             this.long_0 += 1L;
         }
     }
     else
     {
         this.bool_0 = !this.bool_0;
         GControl9.smethod_3(this);
     }
     GControl9.smethod_0(this);
 }
Esempio n. 6
0
 // Token: 0x060001F5 RID: 501 RVA: 0x00002DC2 File Offset: 0x00000FC2
 protected virtual void OnResize(EventArgs e)
 {
     base.OnResize(e);
     GControl9.smethod_5(this, 29);
 }