Beispiel #1
0
 private void OnAddressStepDownExecute()
 {
     if (NumberOfPoints < _baseAdress)
     {
         _baseAdress -= NumberOfPoints;
     }
     else
     {
         _baseAdress = 0;
     }
     RaisePropertyChanged(nameof(BaseAdressHex));
     RaisePropertyChanged(nameof(BaseAdressDec));
     ModbusMemorySettingsChanged?.Invoke(GetModbusMemorySettings());
 }
Beispiel #2
0
 private void OnAddressStepUpExecute()
 {
     if (int.MaxValue - _baseAdress > NumberOfPoints)
     {
         _baseAdress += NumberOfPoints;
     }
     else
     {
         _baseAdress = int.MaxValue - NumberOfPoints;
     }
     RaisePropertyChanged(nameof(BaseAdressHex));
     RaisePropertyChanged(nameof(BaseAdressDec));
     ModbusMemorySettingsChanged?.Invoke(GetModbusMemorySettings());
 }