private void showFacebookSharedSongInfo(FacebookSharedSong i_FacebookSharedSong) { showFacebookInfoControllers(true); CommentsNumberLable.Text = i_FacebookSharedSong.NumberOfComments.ToString(); LikesNumberLabel.Text = i_FacebookSharedSong.NumberOfLikes.ToString(); if (i_FacebookSharedSong.UploadedDate.HasValue) { uploadDateLable.Text = i_FacebookSharedSong.UploadedDate.HasValue ? i_FacebookSharedSong.UploadedDate.Value.ToShortDateString() : "לא זמין"; } }
private void showSongAddOnsInfo() { FacebookSharedSong fss = m_CurrentSong as FacebookSharedSong; if (fss != null) { showFacebookSharedSongInfo(fss); } else { showFacebookInfoControllers(false); } }
public void LoadSongs(FacebookObjectCollection <Link> i_PostedLinks) { PlayListSong currentSong; foreach (Link link in i_PostedLinks) { if (link.URL != null) { try { currentSong = new FacebookSharedSong(link); allSongsListBox.Invoke(new Action(() => { m_Songs.Add(currentSong); })); } catch { ///in case cant create do nothing } } } }