Exemplo 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();
        }
Exemplo n.º 2
0
 public async Task SomethingChangedFunction()
 {
     //StringsToEnumConverter();
     OutputValue = ForceUnitConverter.Convert(InputValue, (ForceUnits)SelectedInputUnit.Id, (ForceUnits)SelectedOutputUnit.Id);
 }