Skip to content

Instantly share code, notes, and snippets.

@dsibinski
Created March 11, 2017 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsibinski/5ace702ca7109b4f6ae08c35cce9ee84 to your computer and use it in GitHub Desktop.
Save dsibinski/5ace702ca7109b4f6ae08c35cce9ee84 to your computer and use it in GitHub Desktop.
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
// Set our view from the "main" layout resource
SetContentView(Resource.Layout.Main);
_amount = 0.00m;
_result = 0.00m;
_numberOfPeople = 0;
InitializeUserControls();
}
// ...
private void InitializeUserControls()
{
_inputAmount = this.FindViewById<EditText>(Resource.Id.inputAmount);
_inputNumberOfPeople = this.FindViewById<EditText>(Resource.Id.inputNumberOfPeople);
_txtResultDecimal = this.FindViewById<EditText>(Resource.Id.txtResultDecimal);
_btnCalculate = this.FindViewById<Button>(Resource.Id.btnCalculate);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment