Esempio n. 1
0
        //Event Menu >> Reply
        public void CommentReplyClick(CommentsArticlesObject item)
        {
            try
            {
                // show dialog :
                ReplyFragment = new ReplyCommentBottomSheet();

                Bundle bundle = new Bundle();
                bundle.PutString("Type", "Article");
                bundle.PutString("Id", ArticlesId);
                bundle.PutString("Object", JsonConvert.SerializeObject(item));

                ReplyFragment.Arguments = bundle;

                ReplyFragment.Show(SupportFragmentManager, ReplyFragment.Tag);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Esempio n. 2
0
        //Event Menu >> Reply
        public void CommentReplyClick(CommentsMoviesObject item)
        {
            try
            {
                // show dialog :
                ReplyFragment = new ReplyCommentBottomSheet();

                Bundle bundle = new Bundle();
                bundle.PutString("Type", "Movies");
                bundle.PutString("Id", MoviesId);
                bundle.PutString("Object", JsonConvert.SerializeObject(item));

                ReplyFragment.Arguments = bundle;

                ReplyFragment.Show(SupportFragmentManager, ReplyFragment.Tag);
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
Esempio n. 3
0
        private void CommentsAdapterOnReplyClick(object sender, CommentAdapterClickEventArgs e)
        {
            try
            {
                var item = e.Class;
                if (item != null)
                {
                    // show dialog :
                    ReplyCommentBottomSheet replyFragment = new ReplyCommentBottomSheet();
                    Bundle bundle = new Bundle();

                    bundle.PutString("Type", "Article");
                    bundle.PutString("Object", JsonConvert.SerializeObject(item));
                    replyFragment.Arguments = bundle;

                    replyFragment.Show(SupportFragmentManager, replyFragment.Tag);
                }
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }