public void replace(ChartControl chart, IChartDataTable _table) { release(); table = _table; listener = new DataUpdateListener(chart.onUpdateCalled); table.onUpdate += listener; }
public ChartData(ChartControl chart, IChartDataTable _table, Color _color, ChartStyle _style) { Debug.Assert(_table != null); table = _table; color = _color; style = _style; listener = new DataUpdateListener(chart.onUpdateCalled); table.onUpdate += listener; }