コード例 #1
0
        private void Product_Click(object sender, RoutedEventArgs e)
        {
            AdminProductsWindow adminWindow = new AdminProductsWindow();

            adminWindow.Show();
            this.Close();
        }
コード例 #2
0
        private void Products_Click(object sender, RoutedEventArgs e)
        {
            AdminProductsWindow product = new AdminProductsWindow();

            product.Show();
            this.Close();
        }
コード例 #3
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     if (SerivceAdmin.canAdminLogIn(txtAdminUserName.Text, txtAdminPassword.Text))
     {
         AdminProductsWindow adminWindow = new AdminProductsWindow();
         this.Close();
         adminWindow.Show();
     }
     else
     {
         MainWindow mainWind = new MainWindow();
         this.Close();
         mainWind.Show();
     }
 }