Example #1
0
        private void _GoToReadPost(GoToReadPost a)
        {
            NavigationService.Navigate(new Uri("/ReadPost.xaml", UriKind.Relative));

            if (a.article.group != null)
                FlurryWP7SDK.Api.LogEvent("ViewPost", parameters: new List<FlurryWP7SDK.Models.Parameter> {
            new FlurryWP7SDK.Models.Parameter("group", a.article.group.name)
        });

            if (a.article.parent_list != null && a.article.order == a.article.parent_list.ArticleList.Count - 1)
                TaskEx.Run(() => a.article.parent_list.load_more());
        }
Example #2
0
        private void _GoToReadPost(GoToReadPost a)
        {
            if (NavigationService.CurrentSource.OriginalString != "/ReadPost.xaml")
                NavigationService.Navigate(new Uri("/ReadPost.xaml?article_id=" + a.article.id, UriKind.Relative));

#if false
            if (a.article.group != null)
                FlurryWP8SDK.Api.LogEvent("ViewPost", parameters: new List<FlurryWP8SDK.Models.Parameter> {
            new FlurryWP8SDK.Models.Parameter("group", a.article.group.name)
        });
#endif

            if (a.article.parent_list != null && a.article.order == a.article.parent_list.ArticleList.Count - 1)
                Task.Run(() => a.article.parent_list.load_more());
        }