private void AddDatabase() { Order order = new Order { Date = Convert.ToDateTime(DateTime.Now.ToShortDateString()), Vendeur = vendeur, Nom = nom, Prenom = prenom, Adresse = adresse, CP = cp, Ville = ville, Email = email, Tel = tel, Gsm = gsm, NbBobines = nbBobines, NbCassettes = nbCassettes, PersoDvdInternet = persoDvdInternet, PersoDvdPapier = persoDvdPapier, NbUnitCond = nbUnitCond, NbDiapos = nbDiapos, NbPhotos = nbPhotos, NbNegatifs = nbNegatifs, DvdStandard = dvdStandard, DvdPersonnalise = dvdPersonnalise, NbCopiesSupp = nbCopiesSupp, MontageAvi = montageAvi, CleUsb = cleUsb, Hdd = hdd, Link = link, Notes = notes, DateRetour = new DateTime(1899, 12, 30), CreatedAt = DateTime.Now }; orderProvider.Create(order); _id = order.Id; Close(); }