Пример #1
0
 private void ApplicationBarIconButton_Click(object sender, EventArgs e)
 {
     CTConnection.LogOut();
     this.Dispatcher.BeginInvoke(() =>
     {
         this.NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));
     });
 }
Пример #2
0
 // 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, ClosingEventArgs e)
 {
     CTConnection.LogOut();
 }
Пример #3
0
 private void PhoneApplicationPage_BackKeyPress(object sender, System.ComponentModel.CancelEventArgs e)
 {
     CTConnection.LogOut();
 }