Exemplo n.º 1
0
 public AfficherDepartements()
 {
     InitializeComponent();
     lu = DepartementORM.listeDepartements();
     listeDepartements.ItemsSource = lu;
     myDataObject = new DepartementViewModel();
 }
Exemplo n.º 2
0
 public AfficherCommunes()
 {
     InitializeComponent();
     lu = CommuneORM.listeCommunes();
     listeCommunes.ItemsSource = lu;
     myDataObject = new CommuneViewModel();
     lp           = DepartementORM.listeDepartements();
     listeDepartementsCombo.ItemsSource = lp;
 }
Exemplo n.º 3
0
        public MainWindow()
        {
            InitializeComponent();
            DALConnection.OpenConnection();

            lp = PersonneORM.listePersonnes();

            listePersonnes.ItemsSource = lp;

            pl = PlageORM.listePlages();

            listePlages.ItemsSource = pl;

            dp = DepartementORM.listeDepartements();

            listeDepartements.ItemsSource = dp;

            et = EtudeORM.listeEtudes();

            listeEtudes.ItemsSource = et;
        }
Exemplo n.º 4
0
        public MainWindow(Window actual_window)
        {
            window = actual_window;
            InitializeComponent();
            DALConnection.OpenConnection();

            // Initialisation de la liste des personnes via la BDD.
            lp      = PersonneORM.listePersonnes();
            lp_prel = PrelevementORM.listePrelevements();
            lp_Esp  = EspeceORM.listeEspeces();
            lp_Et   = EtudeORM.listeEtude();
            lp_Pl   = PlageORM.listePlages();
            lc      = CommuneORM.listeCommunes();
            de      = DepartementORM.listeDepartements();

            //LIEN AVEC la VIEW
            listePersonnes.ItemsSource   = lp;
            listePrelevement.ItemsSource = lp_prel;
            listeEspece.ItemsSource      = lp_Esp;
            listeEtude.ItemsSource       = lp_Et;
            listePlages.ItemsSource      = lp_Pl;
            // bind de la liste avec la source, permettant le binding.
            // this.DataContext = lp; // bind de la liste avec la source, permettant le binding mais de façon globale sur toute la fenetre


            //COMBO BOX FONCTIONNEL
            foreach (var item in lc)
            {
                liste_box1.Items.Add(item.nomVilleProperty);
            }
            foreach (var item in de)
            {
                liste_box3.Items.Add(item.nomProperty);
            }
            foreach (var item2 in lp_prel)
            {
                liste_box2.Items.Add(item2.idprelevementProperty);
            }
        }