public void DrawTitle(int x, string text, Color color) { Shape_Label label = new Shape_Label(); label.X = x; label.Y = -20; label.Text = text; label.Color = color; label.Font = new Font("宋体", 10f, FontStyle.Regular); drawer.DrawShape(label); }
public void Refresh() { drawer.ClearPriceShapes(); drawer.ClearShapes(); if (title != null) { drawer.DrawShape(title); } for (int i = 0; i < priceShapes.Count; i++) { DrawShape(priceShapes[i]); } }