public MainWindow()
        {
            InitializeComponent();

            CustomerInterface        = new CustomerImp();
            tableDTG.ItemsSource     = CustomerInterface.findAllCustomers();
            combox.ItemsSource       = CustomerInterface.findAllCategories();
            combox.DisplayMemberPath = "libelle";
        }
 private void save(client client)
 {
     try
     {
         CustomerInterface.save(client);
         MessageBox.Show("Le client a bien ete ajouter");
         tableDTG.ItemsSource = CustomerInterface.findAllCustomers();
         clear();
     }
     catch (Exception)
     {
         MessageBox.Show("ERREUR D'ENREGISTREMENT");
         throw;
     }
 }