Last active
March 11, 2017 18:47
-
-
Save dsibinski/3c2715968ecf87822ee6f79a46a553ac 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 OnPause() | |
{ | |
base.OnPause(); | |
DetatchUserControlsEvents(); | |
// TODO: saving variables (amount, number of people) to persistent storage (file, database) | |
} | |
// ... | |
private void DetatchUserControlsEvents() | |
{ | |
_btnCalculate.Click -= _btnCalculate_Click; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment