// Token: 0x06000242 RID: 578 RVA: 0x000101A0 File Offset: 0x0000E3A0 protected override void OnPaint(PaintEventArgs config) { base.OnPaint(config); Graphics graphics = config.Graphics; HatchBrush brush = new HatchBrush(HatchStyle.WideDownwardDiagonal, Color.FromArgb(20, Color.Black), Color.Transparent); graphics.Clear(base.Parent.BackColor); graphics.SmoothingMode = SmoothingMode.AntiAlias; checked { this.graphicsPath_0 = Class6.smethod_1(1, 6, base.Width - 3, 8, 3); try { this.int_0 = (int)Math.Round(unchecked (checked ((double)(this.int_3 - this.int_1) / (double)(this.int_2 - this.int_1)) * (double)(checked (base.Width - 11)))); } catch (Exception) { } this.rectangle_0 = new Rectangle(this.int_0, 0, 10, 20); graphics.SetClip(this.graphicsPath_0); this.rectangle_1 = new Rectangle(1, 7, this.rectangle_0.X + this.rectangle_0.Width - 2, 7); this.linearGradientBrush_0 = new LinearGradientBrush(this.rectangle_1, this.color_0, this.color_0, 90f); graphics.FillRectangle(this.linearGradientBrush_0, this.rectangle_1); if (this.bool_1) { graphics.FillRectangle(brush, this.rectangle_1); } graphics.ResetClip(); graphics.SmoothingMode = SmoothingMode.AntiAlias; graphics.DrawPath(new Pen(Color.FromArgb(180, 180, 180)), this.graphicsPath_0); this.graphicsPath_1 = Class6.smethod_0(this.rectangle_0, 3); this.linearGradientBrush_1 = new LinearGradientBrush(base.ClientRectangle, SystemColors.Control, SystemColors.Control, 90f); graphics.FillPath(this.linearGradientBrush_1, this.graphicsPath_1); graphics.DrawPath(new Pen(Color.FromArgb(180, 180, 180)), this.graphicsPath_1); if (this.bool_2) { graphics.DrawString(Convert.ToString(this.Single_0), this.Font, Brushes.Gray, 0f, 25f); } } }
// Token: 0x06000200 RID: 512 RVA: 0x0000F0DC File Offset: 0x0000D2DC protected override void OnPaint(PaintEventArgs item) { base.OnPaint(item); item.Graphics.Clear(this.BackColor); item.Graphics.SmoothingMode = SmoothingMode.AntiAlias; GraphicsPath graphicsPath = Class6.smethod_1(0, 0, base.Width - 1, base.Height - 1, 5); LinearGradientBrush linearGradientBrush = new LinearGradientBrush(base.ClientRectangle, Color.FromArgb(241, 241, 241), Color.FromArgb(241, 241, 241), 90f); item.Graphics.SetClip(graphicsPath); item.Graphics.FillRectangle(linearGradientBrush, base.ClientRectangle); item.Graphics.ResetClip(); item.Graphics.DrawPath(new Pen(Color.FromArgb(204, 204, 204)), graphicsPath); item.Graphics.DrawString(this.Text, this.Font, new SolidBrush(Color.FromArgb(142, 142, 142)), new Rectangle(3, 0, base.Width - 20, base.Height), new StringFormat { LineAlignment = StringAlignment.Center, Alignment = StringAlignment.Near }); item.Graphics.DrawLine(new Pen(Color.FromArgb(160, 160, 160), 2f), new Point(base.Width - 18, 10), new Point(base.Width - 14, 14)); item.Graphics.DrawLine(new Pen(Color.FromArgb(160, 160, 160), 2f), new Point(base.Width - 14, 14), new Point(base.Width - 10, 10)); item.Graphics.DrawLine(new Pen(Color.FromArgb(160, 160, 160)), new Point(base.Width - 14, 15), new Point(base.Width - 14, 14)); graphicsPath.Dispose(); linearGradientBrush.Dispose(); }