private void DeleteMaintenance_Click(object sender, RoutedEventArgs e) { Maintenance RecupMaintenance = dataGrid.SelectedItem as Maintenance; Maintenance LaMaintenance = new Maintenance(); LaMaintenance.Id_Maintenance = Convert.ToInt32(RecupMaintenance.Id_Maintenance);; MaintenanceDAL SuppressionMaintenance = new MaintenanceDAL(); SuppressionMaintenance.SupprimerMaintenance(LaMaintenance); this.NavigationService.Navigate(new GestionMaintenance()); }