Exemple #1
0
        private void btnHome_Click(object sender, RoutedEventArgs e)
        {
            Showroom_Manager sm = new Showroom_Manager();

            sm.Show();
            this.Close();
        }
Exemple #2
0
 private void btnlogin_Click(object sender, RoutedEventArgs e)
 {
     if (txt_userName.Text == "sm" && txt_password.Password == "sm")
     {
         Showroom_Manager sm = new Showroom_Manager();
         sm.Show();
         this.Close();
     }
     else if (txt_userName.Text == "hq" && txt_password.Password == "hq")
     {
         Headquarters_Manager hqm = new Headquarters_Manager();
         hqm.Show();
         this.Close();
     }
     else if (txt_userName.Text == "fm" && txt_password.Password == "fm")
     {
         Factory_Manager fm = new Factory_Manager();
         fm.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Wrong username or password", "Information", MessageBoxButton.OK, MessageBoxImage.Information);
     }
 }