public static Title ParseTitle(XElement titleElement) { Title title = new Title(); XElement propertiesElement = titleElement.Element(MetadataNodeNames.Properties); title.Name = propertiesElement.Element(DataServiceNodeNames.Name).Value; title.ShortName = propertiesElement.Element(DataServiceNodeNames.ShortName).Value; title.Synopsis = propertiesElement.Element(DataServiceNodeNames.Synopsis).Value; title.ShortSynopsis = propertiesElement.Element(DataServiceNodeNames.ShortSynopsis).Value; BoxArt boxArt = new BoxArt(); XElement boxArtElement = propertiesElement.Element(DataServiceNodeNames.BoxArt); boxArt.SmallUrl = new Uri(boxArtElement.Element(DataServiceNodeNames.SmallUrl).Value); boxArt.MediumUrl = new Uri(boxArtElement.Element(DataServiceNodeNames.MediumUrl).Value); boxArt.LargeUrl = new Uri(boxArtElement.Element(DataServiceNodeNames.LargeUrl).Value); title.BoxArt = boxArt; return title; }
public ViewTitleEventArgs(Title title) { Title = title; }
public void RaiseViewTitle(Title title) { if (ViewTitle != null) ViewTitle(this, new ViewTitleEventArgs(title)); }