private void SpDevice_OnFvcComplete(object sender, TrialSpiro res) { VKApp.mainApp.stopSpirometer = true; string Btps = res.Btps.ToString(); string CreationDate = res.CreationDate.ToString(); string TempCelsius = res.TempCelsius.ToString(); string TempFahrenheit = res.TempFahrenheit.ToString(); string header = string.Format("{0}!{1}!{2}!{3}!", Btps, CreationDate, TempCelsius, TempFahrenheit); string strparameters = ""; foreach (var parm in res.Parameters) { string Code = parm.Code.ToString(); string MeasureUnit = parm.MeasureUnit.ToString(); string MeasuredValue = parm.MeasuredValue.ToString(); string Name = parm.Name; string ParameterType = parm.ParameterType.ToString(); strparameters += string.Format("{0}!{1}!{2}!{3}!@", Code, MeasureUnit, MeasuredValue, Name, ParameterType); } VKApp.mainApp.commtoMCC.SendData(string.Format(CommCommands.SpiroFVCResults, header, strparameters)); //FvcFlowVolume fvcv = new FvcFlowVolume(); //fvcv.TrialType = e.TrialType; //fvcv.DateAndTime = e.DateAndTime; //fvcv.CurvePointsCount = e.CurvePoints.Count; //fvcv.ParametersCount = e.Parameters.Count; //fvcv.TrialSubType = e.TrialSubType; //FvcFlowVolumeQueue.Enqueue(fvcv); //if (OnComplete != null) // OnComplete(e); }
private void SpDevice_OnVcComplete(object sender, TrialSpiro res) { VKApp.mainApp.stopSpirometer = true; string Btps = res.Btps.ToString(); string CreationDate = res.CreationDate.ToString(); string TempCelsius = res.TempCelsius.ToString(); string TempFahrenheit = res.TempFahrenheit.ToString(); string header = string.Format("{0}!{1}!{2}!{3}!", Btps, CreationDate, TempCelsius, TempFahrenheit); //string zScoreFormula = res.Parameters.zScoreFormula.tos //string UlnValue = res.Parameters.UlnValue; //string PredictedValue = res.Parameters.PredictedValue //string MeasuredValuePercPred = res.Parameters.MeasuredValuePercPred; //string LlnValue = res.Parameters.LlnValue; string strparameters = ""; foreach (var parm in res.Parameters) { string Code = parm.Code.ToString(); string MeasureUnit = parm.MeasureUnit.ToString(); string MeasuredValue = parm.MeasuredValue.ToString(); string Name = parm.Name; string ParameterType = parm.ParameterType.ToString(); strparameters += string.Format("{0}!{1}!{2}!{3}!@", Code, MeasureUnit, MeasuredValue, Name, ParameterType); } VKApp.mainApp.commtoMCC.SendData(string.Format(CommCommands.SpiroVCResults, header, strparameters)); Debug.Print(res.CurvePoints.Count().ToString()); }
private void SpDevice_OnFvcComplete(object sender, TrialSpiro e) { FvcFlowVolume fvcv = new FvcFlowVolume(); fvcv.TrialType = e.TrialType; fvcv.DateAndTime = e.DateAndTime; fvcv.CurvePointsCount = e.CurvePoints.Count; fvcv.ParametersCount = e.Parameters.Count; fvcv.TrialSubType = e.TrialSubType; FvcFlowVolumeQueue.Enqueue(fvcv); if (OnComplete != null) { OnComplete(e); } // e.TrialType //lstCodLast.Items.Add(e.TrialType); // lstCodLast.Items.Add(e.DateAndTime); //lstCodLast.Items.Add(e.CurvePoints.Count); //lstCodLast.Items.Add(e.Parameters.Count); // lstCodLast.Items.Add(e.TrialSubType); }
private void OnFVCComplete(TrialSpiro e) { string s = "c"; }
private void OnFVCComplete(TrialSpiro e) { }