private void Product_Click(object sender, RoutedEventArgs e) { AdminProductsWindow adminWindow = new AdminProductsWindow(); adminWindow.Show(); this.Close(); }
private void Products_Click(object sender, RoutedEventArgs e) { AdminProductsWindow product = new AdminProductsWindow(); product.Show(); this.Close(); }
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(); } }