private void SpDevice_OnFvcVolumeTime(object sender, VolumeAndTimeArgs e) { FvcFlowVolume fvcv = new FvcFlowVolume(); fvcv.Time = e.Time; fvcv.Volume = e.Volume; FvcFlowVolumeQueue.Enqueue(fvcv); OnVolumeTime?.Invoke(e.Volume, e.Time); }
private void SpDevice_OnVcVolumeTime(object sender, VolumeAndTimeArgs e) { float v = (float)e.Volume; float t = (float)e.Time; string vol = string.Format("{0:0.00}", v); string time = string.Format("{0:0.00}", t); string s = vol + "," + time; if (!VKApp.mainApp.stopSpirometer) { VKApp.mainApp.commwithChartapp.SendMsg(string.Format(CommCommands.SpirometerVC, s)); VKApp.mainApp.commtoMCC.SendData(string.Format(CommCommands.SpirometerVC, s)); } if (VKApp.mainApp.isDiagnosticMode) { OnvcVolumeTime?.Invoke(e.Volume, e.Time); } }
private void SpDevice_OnFvcVolumeTime(object sender, VolumeAndTimeArgs e) { FvcFlowVolume fvcv = new FvcFlowVolume(); fvcv.Time = e.Time; fvcv.Volume = e.Volume; string vol = string.Format("{0:0.00}", fvcv.Volume); string time = string.Format("{0:0.00}", fvcv.Time); string s = vol + "," + time; if (!VKApp.mainApp.stopSpirometer) { VKApp.mainApp.commwithChartapp.SendMsg(string.Format(CommCommands.SpirometerFVCvtdata, s)); VKApp.mainApp.commtoMCC.SendData(string.Format(CommCommands.SpirometerFVCvtdata, s)); } // FvcFlowVolumeQueue.Enqueue(fvcv); if (VKApp.mainApp.isDiagnosticMode) { OnVolumeTime?.Invoke(e.Volume, e.Time); } }