Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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