// Token: 0x060001B9 RID: 441 RVA: 0x0000DCAC File Offset: 0x0000BEAC protected override void OnPaint(PaintEventArgs config) { base.OnPaint(config); Bitmap bitmap = new Bitmap(base.Width, base.Height); Graphics graphics = Graphics.FromImage(bitmap); graphics.SmoothingMode = SmoothingMode.AntiAlias; graphics.Clear(Color.Transparent); graphics.FillPath(this.solidBrush_0, this.graphicsPath_0); graphics.DrawPath(this.pen_0, this.graphicsPath_0); LinearGradientBrush linearGradientBrush = new LinearGradientBrush(new Rectangle(base.Width - 23, 4, 19, 19), Color.FromArgb(241, 241, 241), Color.FromArgb(241, 241, 241), 90f); graphics.FillRectangle(linearGradientBrush, linearGradientBrush.Rectangle); graphics.DrawRectangle(new Pen(Color.FromArgb(252, 252, 252)), new Rectangle(base.Width - 22, 5, 17, 17)); graphics.DrawRectangle(new Pen(Color.FromArgb(180, 180, 180)), new Rectangle(base.Width - 23, 4, 19, 19)); graphics.DrawLine(new Pen(Color.FromArgb(250, 252, 250)), new Point(base.Width - 22, base.Height - 16), new Point(base.Width - 5, base.Height - 16)); graphics.DrawLine(new Pen(Color.FromArgb(180, 180, 180)), new Point(base.Width - 22, base.Height - 15), new Point(base.Width - 5, base.Height - 15)); graphics.DrawLine(new Pen(Color.FromArgb(250, 250, 250)), new Point(base.Width - 22, base.Height - 14), new Point(base.Width - 5, base.Height - 14)); graphics.DrawString("+", new Font("Tahoma", 8f), Brushes.Gray, (float)(base.Width - 19), (float)(base.Height - 26)); graphics.DrawString("-", new Font("Tahoma", 12f), Brushes.Gray, (float)(base.Width - 19), (float)(base.Height - 20)); AnnotationWorker.PipeTransmissionMode pipeTransmissionMode = this.pipeTransmissionMode_0; if (pipeTransmissionMode != (AnnotationWorker.PipeTransmissionMode) 0) { if (pipeTransmissionMode == (AnnotationWorker.PipeTransmissionMode) 1) { graphics.DrawString(Convert.ToString(this.Value), this.Font, new SolidBrush(this.ForeColor), new Rectangle(0, 0, base.Width - 1, base.Height - 1), new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center }); } } else { graphics.DrawString(Convert.ToString(this.Value), this.Font, new SolidBrush(this.ForeColor), new Rectangle(5, 0, base.Width - 1, base.Height - 1), new StringFormat { Alignment = StringAlignment.Near, LineAlignment = StringAlignment.Center }); } config.Graphics.DrawImage((Image)bitmap.Clone(), 0, 0); graphics.Dispose(); bitmap.Dispose(); }
// Token: 0x060001AF RID: 431 RVA: 0x000032F1 File Offset: 0x000014F1 public void ResetTests(AnnotationWorker.PipeTransmissionMode item) { this.pipeTransmissionMode_0 = item; base.Invalidate(); }