public void showRegisterLoginUI() { // RegiserLoginUI RegisterLoginUI = new RegisterLogin(); RegisterLoginUI.LoginEvent += new EventHandler<LoginEventArgs>(RegisterLoginUI_LoginEvent); //RegisterLoginUI.Owner = this; this.Hide(); RegisterLoginUI.Show(); }
private void BtnLogout_Click(object sender, RoutedEventArgs e) { LoginName = null; // RegiserLoginUI RegisterLoginUI = new RegisterLogin(); RegisterLoginUI.LoginEvent += new EventHandler<LoginEventArgs>(RegisterLoginUI_LoginEvent); RegisterLoginUI.Owner = this; this.Hide(); RegisterLoginUI.Show(); }