Example #1
0
 private void Supprimer_panier_Click(object sender, RoutedEventArgs e)
 {
     if (mw.Connected_user != null)
     {
         mw.Connected_user.Panier.Remove((Article)Data_Grid_Article_PANIER.SelectedCells[0].Item);
         Bouton_Panier.Content = "Panier : " + mw.Connected_user.Panier.Count + " Article(s)";
         CalculPanier();
         Data_Grid_Article_PANIER.Items.Refresh();
     }
     else
     {
         MessageBox.Show("Vous devez vous connecter", "Erreur", MessageBoxButton.OK, MessageBoxImage.Error);
         Page_Connexion pc = new Page_Connexion(mw);
         pc.Show();
     }
 }
Example #2
0
        private void Bouton_Login_Click(object sender, RoutedEventArgs e)
        {
            Page_Connexion PC = new Page_Connexion(mw);

            PC.Show();
        }