public string method_3() { if (!this.bool_3) { return(string.Format(this.string_0, this.method_13())); } return(Control1.smethod_4(TimeSpan.FromSeconds((double)this.method_13()), this.string_0)); }
private void method_22(PaintEventArgs paintEventArgs_0, Color color_9, Color color_10, Color color_11, Color color_12, Color color_13, Color color_14, Color color_15, Color color_16) { try { if (this.orientation_0 == Orientation.Horizontal) { float x = (float)((this.int_2 - this.int_3) * (base.ClientRectangle.Width - this.int_1)) / (float)(this.int_4 - this.int_3); this.rectangleF_0 = new RectangleF(x, 1f, (float)(this.int_1 - 1), (float)(base.ClientRectangle.Height - 2)); } else { float y = (float)((this.int_2 - this.int_3) * (base.ClientRectangle.Height - this.int_1)) / (float)(this.int_4 - this.int_3); this.rectangleF_0 = new RectangleF(1f, y, (float)(base.ClientRectangle.Width - 2), (float)(this.int_1 - 1)); } this.rectangleF_1 = base.ClientRectangle; this.rectangleF_3 = this.rectangleF_0; LinearGradientMode linearGradientMode; SizeF sizeF_; if (this.orientation_0 == Orientation.Horizontal) { this.rectangleF_1.Inflate(-1f, -this.rectangleF_1.Height * (100f - this.float_1) / 200f - 1f); this.rectangleF_2 = this.rectangleF_1; this.rectangleF_2.Height = this.rectangleF_2.Height / 2f; linearGradientMode = LinearGradientMode.Vertical; this.rectangleF_3.Height = this.rectangleF_3.Height / 2f; this.rectangleF_4 = this.rectangleF_1; this.rectangleF_4.Width = this.rectangleF_0.Left + (float)this.int_1 / 2f; sizeF_ = new SizeF(this.rectangleF_1.Height * this.float_0 / 50f, this.rectangleF_1.Height * this.float_0 / 50f); } else { this.rectangleF_1.Inflate(-this.rectangleF_1.Width * (100f - this.float_1) / 200f - 1f, -1f); this.rectangleF_2 = this.rectangleF_1; this.rectangleF_2.Width = this.rectangleF_2.Width / 2f; linearGradientMode = LinearGradientMode.Horizontal; this.rectangleF_3.Width = this.rectangleF_3.Width / 2f; this.rectangleF_4 = this.rectangleF_1; this.rectangleF_4.Height = this.rectangleF_0.Top + (float)this.int_1 / 2f; sizeF_ = new SizeF(this.rectangleF_1.Width * this.float_0 / 50f, this.rectangleF_1.Width * this.float_0 / 50f); } if (this.string_0.Length > 0 && (base.Capture || this.bool_7)) { if (this.orientation_0 == Orientation.Horizontal) { if (this.rectangleF_0.X != this.float_2) { this.toolTip_0.Show(this.method_3(), this, (int)((this.float_2 = this.rectangleF_0.X) + this.rectangleF_0.Width * 5f / 4f), (int)this.rectangleF_0.Y); } } else if (this.rectangleF_0.Y != this.float_2) { this.toolTip_0.Show(this.method_3(), this, (int)(this.rectangleF_0.X + this.rectangleF_0.Width * 5f / 4f), (int)(this.float_2 = this.rectangleF_0.Y)); } } else if (this.string_0.Length > 0 && this.bool_6) { string text = this.bool_3 ? Control1.smethod_4(TimeSpan.FromSeconds((double)this.int_7), this.string_0) : string.Format(this.string_0, this.int_7); if (this.orientation_0 == Orientation.Horizontal) { if ((float)this.int_5 != this.float_2) { this.toolTip_0.Show(text, this, (int)((this.float_2 = (float)this.int_5) + 25f), this.int_6); } } else if ((float)this.int_5 != this.float_2) { this.toolTip_0.Show(text, this, this.int_5 + 25, (int)(this.float_2 = (float)this.int_6)); } } else { this.toolTip_0.Hide(this); this.float_2 = -1f; } GraphicsPath graphicsPath; if (this.graphicsPath_0 == null) { graphicsPath = Control1.smethod_0(this.rectangleF_0, new SizeF(this.rectangleF_0.Width * this.sizeF_0.Width / 50f, this.rectangleF_0.Height * this.sizeF_0.Height / 50f)); } else { graphicsPath = this.graphicsPath_0; Matrix matrix = new Matrix(); matrix.Translate(this.rectangleF_0.Left - graphicsPath.GetBounds().Left, this.rectangleF_0.Top - graphicsPath.GetBounds().Top); graphicsPath.Transform(matrix); } paintEventArgs_0.Graphics.SmoothingMode = SmoothingMode.AntiAlias; using (GraphicsPath graphicsPath2 = Control1.smethod_0(this.rectangleF_1, sizeF_)) { using (LinearGradientBrush linearGradientBrush = new LinearGradientBrush(this.rectangleF_2, color_12, color_13, linearGradientMode)) { linearGradientBrush.WrapMode = WrapMode.TileFlipXY; paintEventArgs_0.Graphics.FillPath(linearGradientBrush, graphicsPath2); using (GraphicsPath graphicsPath3 = Control1.smethod_0(this.rectangleF_4, sizeF_)) { using (LinearGradientBrush linearGradientBrush2 = new LinearGradientBrush(this.rectangleF_2, color_15, color_16, linearGradientMode)) { linearGradientBrush2.WrapMode = WrapMode.TileFlipXY; if (base.Capture && this.bool_5) { Region region = new Region(graphicsPath3); region.Exclude(graphicsPath); paintEventArgs_0.Graphics.FillRegion(linearGradientBrush2, region); } else { paintEventArgs_0.Graphics.FillPath(linearGradientBrush2, graphicsPath3); } } } using (Pen pen = new Pen(color_14, 0.5f)) { paintEventArgs_0.Graphics.DrawPath(pen, graphicsPath2); } } } Color color = color_9; Color color2 = color_10; if (base.Capture && this.bool_5) { color = Color.FromArgb(175, color_9); color2 = Color.FromArgb(175, color_10); } using (LinearGradientBrush linearGradientBrush3 = new LinearGradientBrush(this.rectangleF_3, color, color2, linearGradientMode)) { linearGradientBrush3.WrapMode = WrapMode.TileFlipXY; paintEventArgs_0.Graphics.SmoothingMode = SmoothingMode.AntiAlias; Color color3 = color_11; if (this.bool_4 && (base.Capture || this.bool_7)) { color3 = ControlPaint.Dark(color3); } using (Pen pen2 = new Pen(color3)) { if (this.image_0 != null) { paintEventArgs_0.Graphics.DrawImage(this.image_0, this.rectangleF_0); } else { paintEventArgs_0.Graphics.FillPath(linearGradientBrush3, graphicsPath); paintEventArgs_0.Graphics.DrawPath(pen2, graphicsPath); } } } if (this.Focused & this.bool_1) { using (Pen pen3 = new Pen(Color.FromArgb(200, color_14))) { pen3.DashStyle = DashStyle.Dot; RectangleF rectangleF_ = base.ClientRectangle; rectangleF_.Width -= 2f; rectangleF_.Height -= 1f; rectangleF_.X += 1f; using (GraphicsPath graphicsPath4 = Control1.smethod_0(rectangleF_, sizeF_)) { paintEventArgs_0.Graphics.DrawPath(pen3, graphicsPath4); } } } } catch (Exception ex) { Console.WriteLine("DrawBackGround Error in " + base.Name + ":" + ex.Message); } }