コード例 #1
0
        public async Task OutputValueChanged()
        {
            if (OutputValue == StressUnitConverter.Convert(InputValue, (StressUnits)SelectedInputUnit.Id, (StressUnits)SelectedOutputUnit.Id))
            {
                //do nothing
            }
            else
            {
                InputValue = StressUnitConverter.Convert(OutputValue, (StressUnits)SelectedOutputUnit.Id, (StressUnits)SelectedInputUnit.Id);
            }

            //throw new System.NotImplementedException();
        }
コード例 #2
0
 public async Task SomethingChangedFunction()
 {
     //StringsToEnumConverter();
     OutputValue = StressUnitConverter.Convert(InputValue, (StressUnits)SelectedInputUnit.Id, (StressUnits)SelectedOutputUnit.Id);
 }