private void OnGroupJoined(object sender, JoinGroupEventArgs e) { FlickrGroup group = GroupCache[e.GroupId]; if (group == null) return; CurrentUser.GroupIds.Add(group.ResourceId); var evt = new GroupJoinedEventArgs(); evt.GroupId = group.ResourceId; JoinGroupComplete.DispatchEvent(this, evt); }
private void OnGroupJoined(object sender, GroupJoinedEventArgs e) { Dispatcher.BeginInvoke(() => { FlickrGroup group = Cinderella.CinderellaCore.GroupCache[e.GroupId]; if (group == null || GroupList.Contains(group)) return; GroupList.Add(group); }); }
private void OnGroupJoined(object sender, GroupJoinedEventArgs e) { Dispatcher.BeginInvoke(() => { if (e.GroupId != Group.ResourceId) return; PopupContainer.DismissWithAction(() => { Frame rootVisual = System.Windows.Application.Current.RootVisual as Frame; PhoneApplicationPage currentPage = (PhoneApplicationPage)rootVisual.Content; currentPage.NavigationService.Navigate(new Uri("/Plugins/Group/GroupPage.xaml?group_id=" + Group.ResourceId, UriKind.Relative)); }); }); }