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); }
protected virtual void OnPassData(IDataBundle bundle) { // Nothing }
public void PassData(IDataBundle bundle) { OnPassData(bundle); }