Example #1
0
 private void btnRecAndPlay_Click(object sender, EventArgs e)
 {
     if (_status == Status.Stop)
     {
         _timeStart = DateTime.Now.AddYears(-1);
         _dataSaveLayer.ClearData();
         _graphLayer.ClearData();
         txtLogMaxdelValue.Text = "";
         txtLogValuemiMin.Text  = "";
     }
     _status = Status.Start;
     ChangeBtnChecked();
 }
Example #2
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 #3
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));
 }