Пример #1
0
 private void MAdapterOnItemClick(object sender, NotificationAdapterClickEventArgs e)
 {
     try
     {
         if (e.Position >= 0)
         {
             var item = MAdapter.GetItem(e.Position);
             if (item != null)
             {
                 if (item.Title.Contains("added") || item.Title.Contains("disliked") || item.Title.Contains("liked") || item.Title.Contains("commented"))
                 {
                     MainContext.StartPlayVideo(item.Video);
                 }
                 else if (item.Title.Contains("unsubscribed") || item.Title.Contains("subscribed"))
                 {
                     MainContext.ShowUserChannelFragment(item.Userdata, item.Userdata.Id);
                 }
                 else
                 {
                     MainContext.ShowUserChannelFragment(item.Userdata, item.Userdata.Id);
                 }
             }
         }
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
Пример #2
0
 public void OpenChannel(ArticleObject item)
 {
     try
     {
         MainContext.ShowUserChannelFragment(item.UserData, item.UserId.ToString());
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
Пример #3
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);
     }
 }
Пример #4
0
 private void ReplyAdapterOnAvatarClick(object sender, AvatarReplyAdapterClickEventArgs e)
 {
     try
     {
         ActivityContext.ShowUserChannelFragment(e.Class.ReplyUserData, e.Class.UserId.ToString());
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
Пример #5
0
        private void MAdapterOnItemClick(object sender, PopChannelRowAdapterClickEventArgs e)
        {
            try
            {
                if (e.Position <= -1)
                {
                    return;
                }

                var item = MAdapter.GetItem(e.Position);
                if (item == null)
                {
                    return;
                }

                GlobalContext.ShowUserChannelFragment(item.UserData, item.UserData.Id);
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }