public void AddData(double value) { Data.Add(value); if (DataColorChange != null) { Colors.Add(DataColorChange.Invoke(value)); } }
public void AddData(string name, double value) { if (DataColorChange != null) { Color color = DataColorChange.Invoke(value); Data.Add(new UIPieSeriesData(name, value, color)); } else { Data.Add(new UIPieSeriesData(name, value)); } }