Exemple #1
0
 private void AddOrRemoveEvent(bool addEvent)
 {
     try
     {
         switch (addEvent)
         {
         // true +=  // false -=
         case true:
             UserAvatar?.SetOnClickListener(this);
             Username?.SetOnClickListener(this);
             CommentLinearLayout?.SetOnClickListener(this);
             CommentCount?.SetOnClickListener(this);
             ShareLinearLayout?.SetOnClickListener(this);
             LikeButton?.SetOnClickListener(this);
             LikeButton?.SetOnLongClickListener(this);
             MoreIcon?.SetOnClickListener(this);
             LikeCount?.SetOnClickListener(this);
             SecondReactionButton?.SetOnClickListener(this);
             break;
         }
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
Exemple #2
0
 private void AddOrRemoveEvent(bool addEvent)
 {
     try
     {
         // true +=  // false -=
         if (addEvent)
         {
             UserAvatar?.SetOnClickListener(this);
             Username?.SetOnClickListener(this);
             CommentLinearLayout?.SetOnClickListener(this);
             CommentCount?.SetOnClickListener(this);
             ShareLinearLayout?.SetOnClickListener(this);
             LikeButton?.SetOnClickListener(this);
             LikeButton?.SetOnLongClickListener(this);
             MoreIcon?.SetOnClickListener(this);
             LikeCount?.SetOnClickListener(this);
             SecondReactionButton?.SetOnClickListener(this);
         }
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }