private void OnGroupInfoReturned(object sender, GetGroupInfoEventArgs e) { JObject rootJson = JObject.Parse(e.Response); JObject json = (JObject)rootJson["group"]; FlickrGroup group = FlickrGroupFactory.GroupWithJObject(json); if (group == null) return; group.IsInfoRetrieved = true; var evt = new GroupInfoUpdatedEventArgs(); evt.GroupId = group.ResourceId; GroupInfoUpdated.DispatchEvent(this, evt); }
private void OnGroupInfoReturned(object sender, GroupInfoUpdatedEventArgs e) { Dispatcher.BeginInvoke(() => { if (e.GroupId != Group.ResourceId) return; StatusLabel.Text = AppResources.GroupLoadingPhotoCollectionText; if (Group.ThrottleMode != "none") { if (Group.ThrottleRemainingCount == 0) { CanAddPhotosToGroup = false; StatusLabel.Text = AppResources.ThrottleReachedErrorText; StatusProgressBar.Visibility = Visibility.Collapsed; return; } } // Get the list of user photos to choose from CanAddPhotosToGroup = true; Anaconda.AnacondaCore.GetPhotoStreamAsync(Cinderella.CinderellaCore.CurrentUser.ResourceId, new Dictionary<string, string> { { "page", "1" }, { "per_page", "40" } }); }); }
private void OnGroupInfoUpdated(object sender, GroupInfoUpdatedEventArgs e) { Dispatcher.BeginInvoke(() => { if (_group == null) return; if (_group.ResourceId != e.GroupId) return; joinButton.IsEnabled = true; browseButton.IsEnabled = true; UpdateDisplayListAndHideLoadingView(); }); }