public void RefreshListBox() { List <Avion> avions = AeroportBdd.AllAvion(); ListAvion.DataSource = null; ListAvion.DataSource = avions; ListAvion.DisplayMember = "CompleteName"; }
public Avions() { InitializeComponent(); List <Avion> avions = AeroportBdd.AllAvion(); ListAvion.DataSource = avions; ListAvion.DisplayMember = "CompleteName"; ListAvion.ValueMember = "Identifiant"; }
public AjoutModifSupprAvion() { InitializeComponent(); List <Avion> avions = AeroportBdd.AllAvion(); ListAvion.DataSource = avions; ListAvion.DisplayMember = "CompleteName"; ListAvion.ValueMember = "Identifiant"; List <Modele> modele = AeroportBdd.AllModele(); comboBoxModele.DataSource = modele; comboBoxModele.DisplayMember = "CompleteName"; comboBoxModele.ValueMember = "Identifiant"; List <Constructeur> constructeurs = AeroportBdd.AllConstruct(); comboBoxConst.DataSource = constructeurs; comboBoxConst.DisplayMember = "CompleteName"; comboBoxConst.ValueMember = "Identifiant"; }