Exemple #1
0
        public async Task OutputValueChanged()
        {
            if (OutputValue == ForcePerLengthUnitConverter.Convert(InputValue, (ForcePerLengthUnits)SelectedInputUnit.Id, (ForcePerLengthUnits)SelectedOutputUnit.Id))
            {
                //do nothing
            }
            else
            {
                InputValue = ForcePerLengthUnitConverter.Convert(OutputValue, (ForcePerLengthUnits)SelectedOutputUnit.Id, (ForcePerLengthUnits)SelectedInputUnit.Id);
            }

            //throw new System.NotImplementedException();
        }
Exemple #2
0
 public async Task SomethingChangedFunction()
 {
     //StringsToEnumConverter();
     OutputValue = ForcePerLengthUnitConverter.Convert(InputValue, (ForcePerLengthUnits)SelectedInputUnit.Id, (ForcePerLengthUnits)SelectedOutputUnit.Id);
 }