示例#1
0
        private void EvetClicked2(object sender, EventArgs e)
        {
            var param = repo.getNews("", "1").Result;
            var news  = repo.getNewsDetail(param.data[0].NewsId).Result;


            NewsDetailPage myHomePage = new NewsDetailPage(news);

            NavigationPage.SetHasNavigationBar(myHomePage, false);
            Navigation.PushModalAsync(myHomePage);
        }
示例#2
0
        private void EvetClicked(object s, SelectedItemChangedEventArgs e)
        {
            var        obj        = (News.Data)e.SelectedItem;
            string     param      = obj.NewsId.ToString();
            NewsDetail newsdetail = repo.getNewsDetail(param).Result;


            NewsDetailPage myHomePage = new NewsDetailPage(newsdetail);

            NavigationPage.SetHasNavigationBar(myHomePage, false);
            Navigation.PushModalAsync(myHomePage);
        }