Esempio n. 1
0
        //OpenProfile
        private void CommentsAdapterOnAvatarClick(object sender, AvatarCommentAdapterClickEventArgs e)
        {
            try
            {
                var position = e.Position;
                if (position > -1)
                {
                    var item = MAdapter.GetItem(position);
                    if (item != null)
                    {
                        if (item.UserData.Id != null)
                        {
                            GlobalContext.OpenProfile(item.UserData.Id, item.UserData);
                        }

                        CommentWindow.Hide();
                        CommentWindow.Dismiss();
                    }
                }
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }
Esempio n. 2
0
 private void CommentsAdapter_AvatarClick(object sender, AvatarCommentAdapterClickEventArgs e)
 {
     try
     {
         AppTools.OpenProfile(Activity, e.Class.UserId.ToString(), e.Class);
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
Esempio n. 3
0
 //Event Open Profile User
 private void CommentsAdapter_AvatarClick(object sender, AvatarCommentAdapterClickEventArgs e)
 {
     try
     {
         TabbedMainActivity.GetInstance().ShowUserChannelFragment(e.Class.CommentUserData, e.Class.UserId.ToString());
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
Esempio n. 4
0
 //Event Open Profile User
 private void CommentsAdapter_AvatarClick(object sender, AvatarCommentAdapterClickEventArgs e)
 {
     try
     {
         GlobalContext.ShowUserChannelFragment(e.Class.CommentUserData, e.Class.UserId.ToString());
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
Esempio n. 5
0
 private void CommentsAdapter_AvatarClick(object sender, AvatarCommentAdapterClickEventArgs adapterClickEvents)
 {
     try
     {
         var item = adapterClickEvents.Class;
         if (item != null)
         {
         }
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
Esempio n. 6
0
        private void CommentsAdapter_AvatarClick(object sender, AvatarCommentAdapterClickEventArgs e)
        {
            try
            {
                if (YoutubePlayer != null && YoutubePlayer.IsPlaying)
                {
                    YoutubePlayer.Pause();
                }

                AppTools.OpenProfile(MainContext, e.Class.UserId.ToString(), e.Class);
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }
Esempio n. 7
0
        private void CommentsAdapter_AvatarClick(object sender, AvatarCommentAdapterClickEventArgs e)
        {
            try
            {
                if (VideoActionsController.Player != null)
                {
                    VideoActionsController.Player.PlayWhenReady = false;
                }

                AppTools.OpenProfile(MainContext, e.Class.UserId.ToString(), e.Class);
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }