Ejemplo n.º 1
0
 public IndexAanbiedingSliderLijstModel(Bon bon)
 {
     Naam          = bon.Naam;
     AantalBesteld = bon.AantalBesteld;
     GetThumbPath  = bon.GetThumbPath();
     BonId         = bon.BonId;
 }
Ejemplo n.º 2
0
 public ZoekViewModel(Bon bon)
 {
     Naam          = bon.Naam;
     MinPrijs      = bon.MinPrijs;
     MaxPrijs      = bon.MaxPrijs;
     Beschrijving  = bon.Beschrijving;
     AantalBesteld = bon.AantalBesteld;
     GetThumbPath  = bon.GetThumbPath();
     Gemeente      = bon.Gemeente;
     BonId         = bon.BonId;
     CategorieIcon = bon.Categorie.Icon;
     CategorieNaam = bon.Categorie.Naam;
 }
 public CadeaubonBerwerkViewModel(Bon bon)
 {
     BonId         = bon.BonId;
     naamHandelaar = bon.Handelaar.Naam;
     Naam          = bon.Naam;
     Beschrijving  = bon.Beschrijving;
     MinimumPrijs  = bon.MinPrijs;
     Maximumprijs  = bon.MaxPrijs;
     Categorie     = bon.Categorie.Naam;
     Straatnaam    = bon.Straat;
     Huisnummer    = bon.Huisnummer;
     Postcode      = bon.Postcode;
     Gemeente      = bon.Gemeente;
     Aanbieding    = bon.Aanbieding;
     GetThumbPath  = "/" + bon.GetThumbPath();
 }
Ejemplo n.º 4
0
 public DetailViewModel(Bon bon)
 {
     BonId                    = bon.BonId;
     Naam                     = bon.Naam;
     MinPrijs                 = bon.MinPrijs;
     MaxPrijs                 = bon.MaxPrijs;
     Beschrijving             = bon.Beschrijving;
     AantalBesteld            = bon.AantalBesteld;
     getAfbeeldingenPathLijst = bon.getAfbeeldingenPathLijst();
     HandelaarNaam            = bon.Handelaar.Naam;
     HandelaarBeschrijving    = bon.Handelaar.Beschrijving;
     FormatedAdress           = bon.Postcode + " " + bon.Gemeente + ", " + bon.Straat + " " + bon.Huisnummer;
     Gemeente                 = bon.Gemeente;
     CategorieIcon            = bon.Categorie.Icon;
     CategorieNaam            = bon.Categorie.Naam;
     GetThumbPath             = bon.GetThumbPath();
 }