private void PhoneApplicationService_Closing(object sender, Microsoft.Phone.Shell.ClosingEventArgs e) { if (TinderSession.CurrentSession.IsAuthenticated) { TombstoneManager.Save(TinderSession.CurrentSession.ToTombstoneData()); } }
protected override void OnClose(object sender, Microsoft.Phone.Shell.ClosingEventArgs e) { base.OnClose(sender, e); EnableConnections(false); EnableAnalytics(false); }
// Code to execute when the application is closing (eg, user hit Back) // This code will not execute when the application is deactivated private void Application_Closing(object sender, Microsoft.Phone.Shell.ClosingEventArgs e) { }
void Current_Closing(object sender, Microsoft.Phone.Shell.ClosingEventArgs e) { _applicationSettings.Save(); }