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