protected virtual Shape CreateSymbolShape(DataSeries ds) { Shape sh = null; IPlotElement symbolElement = ds.GetSymbolElement(this, clear); if (symbolElement != null) { sh = symbolElement.LegendShape; } if (sh == null) { double num; Rectangle rectangle = new Rectangle(); rectangle.RadiusY = num = 3.0; rectangle.RadiusX = num; sh = rectangle; } if (ds.SymbolShape != null) { ds.SymbolShape.Apply(sh); } if ((sh != null) && (sh.StrokeThickness > 2.0)) { if ((sh.StrokeThickness > 10.0) && (sh.Stroke != null)) { sh.Fill = sh.Stroke; } sh.StrokeThickness = 2.0; } return(sh); }