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