public void CopyData(GraphLayer g, int intervalSec) { _startTime = _DataArray[_firstIndex].Key.AddYears(-1); g.ClearData(); for (int i = _firstIndex; i != _lastIndex; ++i) { i %= _sizeArray; g.UpdateData(_DataArray[i].Value, _DataArray[i].Key.AddTicks(-_startTime.Ticks)); } g.UpdateAsis(_DataArray[_firstIndex].Key, _DataArray[_firstIndex].Key.AddSeconds(intervalSec)); }
public MainForm() { InitializeComponent(); _graphLayer = new GraphLayer(zGraph); }