Пример #1
0
        public void RefreshListBox()
        {
            List <Avion> avions = AeroportBdd.AllAvion();

            ListAvion.DataSource    = null;
            ListAvion.DataSource    = avions;
            ListAvion.DisplayMember = "CompleteName";
        }
Пример #2
0
        public Avions()
        {
            InitializeComponent();

            List <Avion> avions = AeroportBdd.AllAvion();

            ListAvion.DataSource    = avions;
            ListAvion.DisplayMember = "CompleteName";
            ListAvion.ValueMember   = "Identifiant";
        }
Пример #3
0
        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";
        }