private void déconnexionToolStripMenuItem_Click(object sender, EventArgs e) { this.Hide(); Authentification a = new Authentification(); a.Show(); }
public void Logout() { var authentificationWindow = new Authentification(); var activeWindow = Application.Current.Windows.OfType <Window>().SingleOrDefault(x => x.IsActive); authentificationWindow.Show(); activeWindow.Close(); }
private void MetroWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { try { Authentification cl = new Authentification(); cl.Show(); } catch (Exception ex) { MessageBoxResult resultc10 = Xceed.Wpf.Toolkit.MessageBox.Show(ex.Message, Medicus.Properties.Resources.SiteWeb, MessageBoxButton.OK, MessageBoxImage.Error); } }
private void button8_Click(object sender, EventArgs e) { authentification.Show(); this.Close(); }