private void InitialiserUsersControls()
        {
            Departement departement = DataModelDepartement.GetDepartementInfChef(UsagerConnecte.Usager);

            List <Lit>     LstLitsDepartement         = DataModelLit.GetLitsDepartement(departement, true);
            List <Citoyen> lstCitoyenDemandeTransfert = DataModelCitoyen.GetCitoyenDemandeTraitement(departement);

            ControlListeLits controlListeLits = new ControlListeLits(LstLitsDepartement);
            ControlListeDemandesTransfert controlListeDemandesTransfert = new ControlListeDemandesTransfert(lstCitoyenDemandeTransfert, controlListeLits);

            controlListeLits.ControlListeDemandesTransfert = controlListeDemandesTransfert;

            Grid.SetRow(controlListeLits, 1);
            Grid.SetRow(controlListeDemandesTransfert, 1);
            Grid.SetColumn(controlListeDemandesTransfert, 1);

            grdGestionLit.Children.Add(controlListeLits);
            grdGestionLit.Children.Add(controlListeDemandesTransfert);
        }
Ejemplo n.º 2
0
 public ControlModelListeDemandesTransfert(List <Citoyen> lstCitoyen, ControlListeLits controlListeLits)
 {
     Citoyens         = new ObservableCollection <Citoyen>(lstCitoyen);
     ControlListeLits = controlListeLits;
 }