private void BtnLogout_Click(object sender, RoutedEventArgs e) { StaticUser.Logout(); Login login = new Login(); login.Show(); this.Close(); }