private void LogOut_Click(object sender, RoutedEventArgs e) { var form = new Views.LoginView(); form.Show(); this.Close(); }
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; } }