private void onValueSet(SimulationSelectionDTO simulationSelectionDTO, PropertyValueSetEventArgs <bool> args) { if (!AllowMultiSelect) { deselectAll(simulationSelectionDTO); } }
private void onValueUpdating(ValueEditDTO dto, PropertyValueSetEventArgs <double> e) { // Some artifact with this control when values have a lot of digits could lead to an event being raised even though nothing has changed. // This should be fixed in OSPSuite.DataBinding but we'll be done at another time if (ValueComparer.AreValuesEqual(e.OldValue, e.NewValue)) { return; } ValueChanged(dto, e.NewValue); }
private void onForAllSet(PropertyValueSetEventArgs <bool> e) { _presenter.SetForAll(e.NewValue); }
private void newValueSetForCalculationMethod(CategoryCalculationMethodDTO dto, PropertyValueSetEventArgs <CalculationMethod> propertySetEventArgs) { _presenter.SetCalculationMethodForCompound(dto.Category, propertySetEventArgs.NewValue, propertySetEventArgs.OldValue); }