Esempio n. 1
0
        public async Task OutputValueChanged()
        {
            if (OutputValue == ForceUnitConverter.Convert(InputValue, (ForceUnits)SelectedInputUnit.Id, (ForceUnits)SelectedOutputUnit.Id))
            {
                //do nothing
            }
            else
            {
                InputValue = ForceUnitConverter.Convert(OutputValue, (ForceUnits)SelectedOutputUnit.Id, (ForceUnits)SelectedInputUnit.Id);
            }

            //throw new System.NotImplementedException();
        }
Esempio n. 2
0
 public async Task SomethingChangedFunction()
 {
     //StringsToEnumConverter();
     OutputValue = ForceUnitConverter.Convert(InputValue, (ForceUnits)SelectedInputUnit.Id, (ForceUnits)SelectedOutputUnit.Id);
 }