Ejemplo n.º 1
0
        protected virtual void OnMeasurementCompleted(MeasurementCompletedEventArgs e)
        {
            MeasurementCompletedEventHandler handler = MeasurementCompleted;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Ejemplo n.º 2
0
        public void RunGenerator()
        {
            List <decimal?> data = GetTestData();

            foreach (decimal?measurement in data)
            {
                MeasurementCompletedEventArgs args =
                    new MeasurementCompletedEventArgs(measurement, DateTime.UtcNow);
                OnMeasurementCompleted(args);
                Thread.Sleep(2000);
            }
        }