Atmo.UI.DevEx.MainForm.OnTimedEventWU C# (CSharp) Метод

OnTimedEventWU() приватный Метод

private OnTimedEventWU ( object source, System e ) : void
source object
e System
Результат void
        private void OnTimedEventWU(object source, System.Timers.ElapsedEventArgs e)
        {
            timerRapidFire_TickWU(null, null);

                try
                {
                    ISensor[] sensors = _deviceConnection.ToArray();

                    for (int i = 0; i < sensors.Length; i++)
                    {
                        if (sensors[i].IsValid)
                        {
                            var reading = sensors[i].GetCurrentReading();
                            if (reading.IsWindSpeedValid == true)
                            {
                                _advancedSensorValues[i].AddValue_WU_WindSpeed(reading.WindSpeed);
                            }
                        }

                    }
                }
                catch (Exception ex)
                {
                    Log.Error(ex.ToString());
                }
        }
MainForm