private GraphicsPath GetPath(float offx, float offy) { if ((offx != 0f) || (offy != 0f)) { GraphicsPath path1 = new GraphicsPath(FillMode.Winding); RoundedRectangleGraph.MakeRoundedRectangularPath(path1, offx, offy, this.Bounds, this.Corner); return(path1); } if (this.myPath == null) { this.myPath = new GraphicsPath(FillMode.Winding); RoundedRectangleGraph.MakeRoundedRectangularPath(this.myPath, 0f, 0f, this.Bounds, this.Corner); } return(this.myPath); }
private GraphicsPath GetPath(float offx, float offy) { GraphicsPath path1; if ((offx != 0f) || (offy != 0f)) { path1 = new GraphicsPath(FillMode.Winding); } else { if (this.myPath != null) { return(this.myPath); } path1 = new GraphicsPath(FillMode.Winding); this.myPath = path1; } RectangleF ef1 = this.Bounds; SizeF ef2 = this.Corner; RoundedRectangleGraph.MakeRoundedRectangularPath(path1, offx, offy, ef1, ef2); return(path1); }