Example #1
0
 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));
 }
Example #2
0
 public MainForm()
 {
     InitializeComponent();
     _graphLayer = new GraphLayer(zGraph);
 }