예제 #1
0
        private void _CloseButton_Click(object sender, RoutedEventArgs e)
        {
            ChooseWindow ChooseWindow = new ChooseWindow();

            ChooseWindow.Show();
            this.Close();
        }
예제 #2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (PartSystem.TryLogin(LoginBox.Text, PassBox.Password))
         {
             ChooseWindow choosewindow = new ChooseWindow();
             choosewindow.Show();
             this.Close();
         }
         else
         {
             MessageBox.Show("Błędne dane");
         }
     }
     catch (Exception ex)
     {
     }
 }