Example #1
0
        private async void ListMenu_ItemClick(object sender, ItemClickEventArgs e)
        {
            var threePoint = e.ClickedItem as RecommendThreePointV2ItemModel;

            if (threePoint.type == "watch_later")
            {
                var item = (sender as ListView).DataContext as RecommendItemModel;
                WatchLaterVM.Instance.AddToWatchlater(item.param);
                return;
            }
            if (threePoint.type == "dislike")
            {
                await recommendVM.Dislike(threePoint.idx, threePoint, null);

                return;
            }
            if (threePoint.type == "browser")
            {
                await Launcher.LaunchUriAsync(new Uri(threePoint.url));

                return;
            }
        }
 private async void ListDislike_ItemClick(object sender, ItemClickEventArgs e)
 {
     var reasons    = e.ClickedItem as Modules.Home.RecommendModels.RecommendThreePointV2ItemReasonsModel;
     var threePoint = (sender as GridView).DataContext as Modules.Home.RecommendModels.RecommendThreePointV2ItemModel;
     await recommendVM.Dislike(threePoint.idx, threePoint, reasons);
 }