Ejemplo n.º 1
0
        public void ChangeCommande(string nom_produit, float quantite)
        {
            ListeCommandes listeCommandes = XMLSerialisation.DeserialiserCommandes("commandes.xml");

            listeCommandes.UpdateProduit(nom_produit, quantite);
            XMLSerialisation.SerialiserCommandes("commandes.xml", listeCommandes);
        }
Ejemplo n.º 2
0
 public Admin(string comandefilename)
 {
     m_adminSQL         = new AdminSQL();
     m_commandeFilename = comandefilename;
     UpdateProduit();
     UpdateCommande();
     if (!File.Exists(comandefilename))
     {
         m_Listecommandes = new ListeCommandes();
         SaveCommandes();
     }
     m_Listecommandes = XMLSerialisation.DeserialiserCommandes(m_commandeFilename);
 }