Пример #1
0
 private void _core_MeasuredResistance(MeasuredValues value)
 {
     Logger.Info("Данные измерения: " + value.ToString());
     App.Current.Dispatcher.BeginInvoke(new Action(() =>
     {
         Resistance        = value.Resistance;
         ReverseResistance = value.ReverseResistance;
         ThermoEDF         = value.ThermoEDF;
         if (MeasuredValuesCollection != null)
         {
             MeasuredValuesCollection.Insert(0, value);
         }
     }));
 }
Пример #2
0
 private void _core_MeasuredResistance(MeasuredValues value)
 {
     Logger.Info("Данные измерения: " + value.ToString());
     App.Current.Dispatcher.BeginInvoke(new Action(() =>
     {
         Voltage          = value.Voltage * 1000;
         value.Currency   = Currency;
         value.Resistance = Currency == 0 ? 0 : 2 * Math.PI * 0.004 * value.Voltage / Currency;
         Resistance       = value.Resistance;
         if (MeasuredValuesCollection != null)
         {
             MeasuredValuesCollection.Insert(0, value);
         }
     }));
 }