コード例 #1
0
        public UiAdvertListing(Advert advert, ISettings apiSettings)
        {
            AdStatus = UiTextBlock.Paragraph(advert.Status.ToString());

            AdTitle = UiTextBlock.Emphasis(advert.Title);
            AdId    = UiTextBlock.Paragraph(advert.AdvertReference);
            AdType  = UiTextBlock.Paragraph("Standard");

            AdPrice           = UiTextBlock.Paragraph(String.Format("{0:C}", advert.EditingData.Price));
            AdDateTimeCreated = UiTextBlock.Paragraph(advert.DateCreated.GetHumanReadableDate());
        }