Example #1
0
 private void Button_Create_facture(object sender, RoutedEventArgs e)
 {
     _daoFacture.NouvelleFacture(new Facture(
                                     Selection_Date.DisplayDate,
                                     double.Parse(Box_Montant.Text),
                                     int.Parse(Box_Credits.Text),
                                     _client
                                     ));
     _daoClient.AddCredits(_client, int.Parse(Box_Credits.Text));
     MessageBox.Show("La facture a bien été créé et le client a bien reçu " + Box_Credits.Text + " crédits.");
 }