// Token: 0x06000158 RID: 344 RVA: 0x00006448 File Offset: 0x00004648 protected virtual void OnPaint(PaintEventArgs e) { this.method_0(); Bitmap bitmap = GControl5.smethod_3(GControl5.smethod_1(this), GControl5.smethod_2(this)); Graphics graphics = GControl5.smethod_4(bitmap); this.int_0 = GControl5.smethod_1(this) - 1; this.int_1 = GControl5.smethod_2(this) - 1; GraphicsPath graphicsPath_ = GControl5.smethod_5(); GraphicsPath graphicsPath_2 = GControl5.smethod_5(); GraphicsPath graphicsPath_3 = GControl5.smethod_5(); Rectangle rectangle_ = new Rectangle(8, 8, this.int_0 - 16, this.int_1 - 16); Graphics graphics2 = graphics; GControl5.smethod_6(graphics2, SmoothingMode.HighQuality); GControl5.smethod_7(graphics2, PixelOffsetMode.HighQuality); GControl5.smethod_8(graphics2, TextRenderingHint.ClearTypeGridFit); GControl5.smethod_10(graphics2, GControl5.smethod_9(this)); graphicsPath_ = GClass6.smethod_0(rectangle_, 8); GControl5.smethod_12(graphics2, GControl5.smethod_11(this.color_0), graphicsPath_); graphicsPath_2 = GClass6.smethod_2(28, 2, false); GControl5.smethod_12(graphics2, GControl5.smethod_11(this.color_0), graphicsPath_2); graphicsPath_3 = GClass6.smethod_2(28, 8, true); GControl5.smethod_12(graphics2, GControl5.smethod_11(Color.FromArgb(60, 70, 73)), graphicsPath_3); if (this.Boolean_0) { graphics2.DrawString(GControl5.smethod_13(this), GControl5.smethod_14(this), GControl5.smethod_11(this.color_1), new Rectangle(16, 16, 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(); }
// Token: 0x06000157 RID: 343 RVA: 0x000063C8 File Offset: 0x000045C8 public GControl5() { base.SetStyle(ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true); this.DoubleBuffered = true; GControl5.smethod_0(this, Color.Transparent); base.Size = new Size(240, 180); this.Font = new Font("Segoe ui", 10f); }