Example #1
0
 private async void OnPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == nameof(OutletSpeed))
     {
         await _plcService.WriteSpeedOutletPump((short)OutletSpeed);
     }
     else if (e.PropertyName == nameof(InletPumpSpeed))
     {
         await _plcService.WriteSpeedInletPump((short)InletPumpSpeed);
     }
 }