public SettableAnyParameterViewModel(int paramIndex, string name, double maxValue, double minValue, double?doubleValue, string stringFormat, IDoubleBytesPairConverter doubleBytesPairConverter, IParameterSetter parameterSetter, IThreadNotifier uiNotifier) { _doubleBytesPairConverter = doubleBytesPairConverter; _parameterSetter = parameterSetter; _uiNotifier = uiNotifier; ParamIndex = paramIndex; Name = name; MaxValue = maxValue; MinValue = minValue; DoubleValue = doubleValue; StringFormat = stringFormat; _receivedDoubleValue = null; _isEnabled = true; _lastOperationColor = Colors.Transparent; _resetCommand = new RelayCommand(Reset, () => _receivedDoubleValue.HasValue); _setCommand = new RelayCommand(Set, () => _doubleValue.HasValue && IsEnabled); }
public SettableTemperatureParameterViewModel( int paramIndex, string name, double maxValue, double minValue, double?formattedValue, string stringFormat, IDoubleBytesPairConverter doubleBytesPairConverter, IParameterSetter parameterSetter, IThreadNotifier uiNotifier, string toolTipText) : base( paramIndex, name, maxValue, minValue, formattedValue, stringFormat, doubleBytesPairConverter, parameterSetter, uiNotifier, toolTipText) { }