Exemplo n.º 1
0
        private void Product_Click(object sender, RoutedEventArgs e)
        {
            AdminProductsWindow adminWindow = new AdminProductsWindow();

            adminWindow.Show();
            this.Close();
        }
Exemplo n.º 2
0
        private void Products_Click(object sender, RoutedEventArgs e)
        {
            AdminProductsWindow product = new AdminProductsWindow();

            product.Show();
            this.Close();
        }
Exemplo n.º 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();
     }
 }