Пример #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            MainW.Hide();
            loginW.ShowDialog();

            if (LoginOK == true)
            {
                MainW.Show();
                Username = SocSecNb; //Visning af brugernavn på hovedmenu
            }
            if (LoginOK == false)
            {
                MainW.Close();
            }
            DataContext = this;
        }
Пример #2
0
 private void LogoutButton_Click(object sender, RoutedEventArgs e)
 {
     loginW.Show();
     MainW.Hide();
 }