// 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(); }
// 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); }