Beispiel #1
0
 public string GetItemImage(string typeName, ChannelInfo chanleInfo)
 {
     if (JudgeLandscapeChannel(typeName))
         return chanleInfo.SlotUri;
     return chanleInfo.ImageUri;
 }
Beispiel #2
0
 private void OnFavoriteTap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     FavoriteItem favoriteItem = sender as FavoriteItem;
     _currentSelectedChannelInfo = new ChannelInfo(favoriteItem.Vid, favoriteItem.TitleText, "", favoriteItem.ImageUrl, 0, false, false, false, false, 0, 0, 1, "");
     int vid = favoriteItem.Vid;
     string page = String.Format("/DetailPage.xaml?vid={0}&programSource=6", vid);
     NavigationService.Navigate(new Uri(page, UriKind.RelativeOrAbsolute));
 }