コード例 #1
0
 public EditImagesViewModel()
 {
     this.Photos = new PhotoGeneriqueViewModel[NombrePhotos];
     for (int i = 0; i < NombrePhotos; i++)
     {
         Photos[i] = new PhotoGeneriqueViewModel();
     }
 }
コード例 #2
0
 public EditImagesViewModel(int nombrePhotos, int tailleMaxImages, Guid etablissementId, int tailleMaxLogo)
 {
     this.Photos = new PhotoGeneriqueViewModel[nombrePhotos];
     for (int i = 0; i < nombrePhotos; i++)
     {
         Photos[i] = new PhotoGeneriqueViewModel();
     }
     NombrePhotos    = nombrePhotos;
     TailleMaxImages = tailleMaxImages;
     EtablissementId = etablissementId;
     TailleMaxLogo   = tailleMaxLogo;
     lPathImages     = new List <PhotoGeneriqueViewModel>();
 }
コード例 #3
0
        public CreateEtablissementViewModel()
        {
            lTypeEtablissement = new TypeEtablissement().types;
            lPays          = new Pays().lPays;
            lJoursSemaines = new JoursSemaine().lJours;
            this.Etab      = new Etablissement();
            this.lHoraire  = new List <Horaire>();

            this.Photos = new PhotoGeneriqueViewModel[NombrePhotos];
            for (int i = 0; i < NombrePhotos; i++)
            {
                Photos[i] = new PhotoGeneriqueViewModel();
            }
        }