Esempio n. 1
0
        private void _CloseButton_Click(object sender, RoutedEventArgs e)
        {
            ChooseWindow ChooseWindow = new ChooseWindow();

            ChooseWindow.Show();
            this.Close();
        }
Esempio n. 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)
     {
     }
 }