コード例 #1
0
        protected override void OnPassData(IDataBundle bundle)
        {
            NewsItem = bundle.GetString(nameof(NewsItem)).OfJson <NewsItemDTO>();

            if (NewsItem != null)
            {
                Image.Text = NewsItem.ImagePath;

                TitleButton.Text = NewsItem.Russian.Title?.ToUpperInvariant();
                Annotation.Text  = NewsItem.Russian.Annotation;
                Text.Text        = NewsItem.Russian.Body;
                Author.Text      = NewsItem.Author?.ToUpperInvariant();

                Date.Value = NewsItem.CreatedDate;
            }

            base.OnPassData(bundle);
        }
コード例 #2
0
 protected virtual void OnPassData(IDataBundle bundle)
 {
     // Nothing
 }
コード例 #3
0
 public void PassData(IDataBundle bundle)
 {
     OnPassData(bundle);
 }