Esempio n. 1
0
        private void SpDevice_OnFvcFlowVolume(object sender, FlowAndVolumeArgs e)
        {
            FvcFlowVolume fvcv = new FvcFlowVolume();

            fvcv.Volume = e.Volume;
            fvcv.flow   = e.Flow;
            FvcFlowVolumeQueue.Enqueue(fvcv);
            OnFlowVolume?.Invoke(e.Flow, e.Volume);
        }
        private void SpDevice_OnFvcFlowVolume(object sender, FlowAndVolumeArgs e)
        {
            FvcFlowVolume fvcv = new FvcFlowVolume();

            fvcv.Volume = e.Volume;
            fvcv.flow   = e.Flow;

            string flow = string.Format("{0:0.00}", fvcv.flow);
            string vol  = string.Format("{0:0.00}", fvcv.Volume);
            string s    = flow + "," + vol;

            if (!VKApp.mainApp.stopSpirometer)
            {
                VKApp.mainApp.commwithChartapp.SendMsg(string.Format(CommCommands.SpirometerFVCdata, s));
                VKApp.mainApp.commtoMCC.SendData(string.Format(CommCommands.SpirometerFVCdata, s));
            }
            //   FvcFlowVolumeQueue.Enqueue(fvcv);
            if (VKApp.mainApp.isDiagnosticMode)
            {
                OnFlowVolume?.Invoke(e.Flow, e.Volume);
            }
        }