Ejemplo n.º 1
0
        public override string GetHtmlDescription()
        {
            HouseAnnouncement house       = Announcement as HouseAnnouncement;
            string            description = string.Empty;

            if (house != null)
            {
                description  = string.Format("{0}: {1}<br/>", Translation.Translation.ApartmentDetailsPageRoomsCountLabel, house.RoomsNumber);
                description += string.Format("{0}: {1} {2}<br/>", Translation.Translation.LandsDetailsPageSquareLabel, house.TotalSquare.Value, EnumsToSelectedListItems.GetTextFromEnumValue(house.TotalSquare.Unit));
                description += string.Format("{0}: {1} {2}<br/>", Translation.Translation.HousesDetailsPageSquareLabel, house.LivingSquare.Value, EnumsToSelectedListItems.GetTextFromEnumValue(house.LivingSquare.Unit));
                description += string.Format("{0}: {1} {2}<br/>", Translation.Translation.ApartmentDetailsPagePriceLabel, house.Price, EnumsToSelectedListItems.GetTextFromEnumValue(house.Currency));
            }
            return(Translation.Translation.LandAnnouncementLabel + " " + base.GetHtmlDescription() + "<br/>" + description);
        }
Ejemplo n.º 2
0
        public override string GetHtmlDescription()
        {
            LandAnnouncement land        = Announcement as LandAnnouncement;
            string           description = string.Empty;

            if (land != null)
            {
                description += string.Format("{0}: {1} {2}<br/>", Translation.Translation.LandsDetailsPageSquareLabel, land.TotalSquare.Value, EnumsToSelectedListItems.GetTextFromEnumValue(land.TotalSquare.Unit));
                description += string.Format("{0}: {1} {2}<br/>", Translation.Translation.ApartmentDetailsPagePriceLabel, land.Price, EnumsToSelectedListItems.GetTextFromEnumValue(land.Currency));
            }
            return(Translation.Translation.LandAnnouncementLabel + " " + base.GetHtmlDescription() + "<br/>" + description);
        }