public void LoadComments(PhotoCommentCollection comments) { var pc = new PictureComments(); pc.LoadComments(comments, "Comments"); grdSubWindow.Children.Add(pc); ShowSubWindow(0, 40, 0); }
public void LoadComments(PhotoCommentCollection comments, string title) { tbTitle.Text = title; gvMain.ItemsSource = comments; if (ChangeViewState != null) { ChangeViewState("Normal", null); } }
public void PhotosCommentsGetListBasicTest() { PhotoCommentCollection comments = Instance.PhotosCommentsGetList("3546335765"); Assert.IsNotNull(comments, "PhotoCommentCollection should not be null."); Assert.AreEqual(1, comments.Count, "Count should be one."); Assert.AreEqual("ian1001", comments[0].AuthorUserName); Assert.AreEqual("Sam lucky you NYCis so cool can't wait to go again it's my fav city along with San fran", comments[0].CommentHtml); }
private async void RetrievePhotoDetails(Photo photo) { selectedPhoto = photo; //var dataToPass = new List<KeyValuePair<string, object>>(); //dataToPass.Add(new KeyValuePair<string, object>("Title", photo.Title)); //dataToPass.Add(new KeyValuePair<string, object>("ThumbnailUrl", photo.ThumbnailUrl)); //dataToPass.Add(new KeyValuePair<string, object>("LargeUrl", photo.LargeUrl)); //dataToPass.Add(new KeyValuePair<string, object>("Medium640Url", photo.Medium640Url)); //dataToPass.Add(new KeyValuePair<string, object>("MediumUrl", photo.MediumUrl)); //dataToPass.Add(new KeyValuePair<string, object>("SmallUrl", photo.SmallUrl)); //dataToPass.Add(new KeyValuePair<string, object>("IconServer", photo.IconServer)); //dataToPass.Add(new KeyValuePair<string, object>("Server", photo.Server)); //dataToPass.Add(new KeyValuePair<string, object>("IconFarm", photo.IconFarm)); //dataToPass.Add(new KeyValuePair<string, object>("Farm", photo.Farm)); //dataToPass.Add(new KeyValuePair<string, object>("PhotoId", photo.PhotoId)); //await MakeUWPCommandCall("LoadFlickrPhoto", "Call", dataToPass); //note : amazingly mvvmlight message bus works perfectly with extensions talking to the host Messenger.Default.Send(new LoadPhoto() { Photo = photo }); var foundUser = await _flickr.PeopleGetInfoAsync(photo.UserId); if (!foundUser.HasError) { photoUser = foundUser.Result; Messenger.Default.Send(new LoadPhotoUser() { User = photoUser }); } var foundComments = await _flickr.PhotosCommentsGetListAsync(photo.PhotoId); if (!foundComments.HasError) { photoComments = foundComments.Result; Messenger.Default.Send(new LoadPhotoComments() { Comments = photoComments }); } }
public void LoadComments(PhotoCommentCollection comments, string title) { tbTitle.Text = title; gvMain.ItemsSource = comments; if (ChangeViewState != null) ChangeViewState("Normal", null); }
private async void RetrievePhotoDetails(Photo photo) { selectedPhoto = photo; //var dataToPass = new List<KeyValuePair<string, object>>(); //dataToPass.Add(new KeyValuePair<string, object>("Title", photo.Title)); //dataToPass.Add(new KeyValuePair<string, object>("ThumbnailUrl", photo.ThumbnailUrl)); //dataToPass.Add(new KeyValuePair<string, object>("LargeUrl", photo.LargeUrl)); //dataToPass.Add(new KeyValuePair<string, object>("Medium640Url", photo.Medium640Url)); //dataToPass.Add(new KeyValuePair<string, object>("MediumUrl", photo.MediumUrl)); //dataToPass.Add(new KeyValuePair<string, object>("SmallUrl", photo.SmallUrl)); //dataToPass.Add(new KeyValuePair<string, object>("IconServer", photo.IconServer)); //dataToPass.Add(new KeyValuePair<string, object>("Server", photo.Server)); //dataToPass.Add(new KeyValuePair<string, object>("IconFarm", photo.IconFarm)); //dataToPass.Add(new KeyValuePair<string, object>("Farm", photo.Farm)); //dataToPass.Add(new KeyValuePair<string, object>("PhotoId", photo.PhotoId)); //await MakeUWPCommandCall("LoadFlickrPhoto", "Call", dataToPass); //note : amazingly mvvmlight message bus works perfectly with extensions talking to the host Messenger.Default.Send(new LoadPhoto() { Photo = photo }); var foundUser = await _flickr.PeopleGetInfoAsync(photo.UserId); if (!foundUser.HasError) { photoUser = foundUser.Result; Messenger.Default.Send( new LoadPhotoUser() { User = photoUser } ); } var foundComments = await _flickr.PhotosCommentsGetListAsync(photo.PhotoId); if (!foundComments.HasError) { photoComments = foundComments.Result; Messenger.Default.Send(new LoadPhotoComments() { Comments = photoComments }); } }