Пример #1
0
        private void LogOut_Click(object sender, RoutedEventArgs e)
        {
            var form = new Views.LoginView();

            form.Show();
            this.Close();
        }
Пример #2
0
 internal void Logout()
 {
     try
     {
         if (IsBusy)
         {
             return;
         }
         IsBusy = true;
         var login = new Views.LoginView();
         login.Show();
         this.WindowClose();
     }
     catch (Exception ex)
     {
         Helpers.ShowErrorMessage(ex.Message);
     }
     finally { IsBusy = false; }
 }