Пример #1
0
 private void onValueSet(SimulationSelectionDTO simulationSelectionDTO, PropertyValueSetEventArgs <bool> args)
 {
     if (!AllowMultiSelect)
     {
         deselectAll(simulationSelectionDTO);
     }
 }
Пример #2
0
        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);
        }
Пример #3
0
 private void onForAllSet(PropertyValueSetEventArgs <bool> e)
 {
     _presenter.SetForAll(e.NewValue);
 }
Пример #4
0
 private void newValueSetForCalculationMethod(CategoryCalculationMethodDTO dto, PropertyValueSetEventArgs <CalculationMethod> propertySetEventArgs)
 {
     _presenter.SetCalculationMethodForCompound(dto.Category, propertySetEventArgs.NewValue, propertySetEventArgs.OldValue);
 }