Created
March 11, 2017 17:54
-
-
Save dsibinski/5ace702ca7109b4f6ae08c35cce9ee84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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