public EditImagesViewModel() { this.Photos = new PhotoGeneriqueViewModel[NombrePhotos]; for (int i = 0; i < NombrePhotos; i++) { Photos[i] = new PhotoGeneriqueViewModel(); } }
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>(); }
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(); } }