Skip to content

Instantly share code, notes, and snippets.

@dsibinski
Created March 11, 2017 17:56
Show Gist options
  • Save dsibinski/f5b27956b31e09db96167eeca264ee8a to your computer and use it in GitHub Desktop.
Save dsibinski/f5b27956b31e09db96167eeca264ee8a to your computer and use it in GitHub Desktop.
protected override void OnStart()
{
base.OnStart();
RefreshUserInputsFromVariables();
}
// ...
private void RefreshUserInputsFromVariables()
{
_inputAmount.SetText(_amount.ToString(CultureInfo.InvariantCulture), TextView.BufferType.Editable);
_txtResultDecimal.SetText(_result.ToString(CultureInfo.InvariantCulture), TextView.BufferType.Editable);
_inputNumberOfPeople.SetText(_numberOfPeople.ToString(CultureInfo.InvariantCulture),
TextView.BufferType.Editable);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment