public GridLabel AddLabel(string text, double location, Orientation orientation, Color? color = null) { Brush brush = null; if(color.HasValue) { brush = new SolidColorBrush(color.Value); } GridLabel label = new GridLabel(text, location, orientation, brush); _gridLabels.Add(label); return label; }
public GridLabel AddLabel(string text, double location, Orientation orientation, Color?color = null) { Brush brush = null; if (color.HasValue) { brush = new SolidColorBrush(color.Value); } GridLabel label = new GridLabel(text, location, orientation, brush); _gridLabels.Add(label); return(label); }