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