private void Edit(object sender, DataGridCellEditEndingEventArgs e)
        {
            if (e.EditAction == DataGridEditAction.Commit)
            {
                DataGridColumn column = e.Column;
                if (column != null)
                {
                    string   column_nom = (string)column.Header;
                    TextBox  el         = e.EditingElement as TextBox;
                    Aeroport aeroport   = DAL_Aeroport.GetAeroport(IdAeroport);

                    switch (column_nom)
                    {
                    case "Nom":
                        aeroport.Nom = el.Text;
                        break;

                    case "Ville":
                        ComboBox co = e.EditingElement as ComboBox;
                        aeroport.Ville = (string)co.SelectionBoxItem;
                        break;

                    case "AITA":
                        aeroport.AITA = el.Text;
                        break;

                    default:
                        break;
                    }
                    DAL_Aeroport.ModifierAeroport(aeroport.Id, aeroport.Nom, DAL_Ville.FindByName(aeroport.Ville).Id, aeroport.AITA);
                }
            }
        }
 private void Nouvel_aeroport_click(object sender, RoutedEventArgs e)
 {
     if (ville.Text != "")
     {
         DAL_Aeroport.AjouterAeroport(Nom.Text, DAL_Ville.FindByName(ville.Text).Id, Aita.Text);
         AfficherAeroport();
     }
 }