private void MAdapterOnItemClick(object sender, MentionAdapterClickEventArgs e)
 {
     try
     {
         var item = MAdapter.GetItem(e.Position);
         if (item == null)
         {
             return;
         }
         item.Selected = !item.Selected;
         MAdapter.NotifyItemChanged(e.Position);
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
Esempio n. 2
0
 private void MAdapterOnItemClick(object sender, MentionAdapterClickEventArgs e)
 {
     try
     {
         var item = MAdapter.GetItem(e.Position);
         if (item == null)
         {
             return;
         }
         item.Selected = !item.Selected;
         MAdapter.NotifyItemChanged(e.Position);
     }
     catch (Exception exception)
     {
         Methods.DisplayReportResultTrack(exception);
     }
 }
Esempio n. 3
0
        private void MAdapterOnItemClick(object sender, MentionAdapterClickEventArgs e)
        {
            try
            {
                var item = MAdapter.GetItem(e.Position);
                switch (item)
                {
                case null:
                    return;

                default:
                    item.Selected = !item.Selected;
                    MAdapter.NotifyItemChanged(e.Position);
                    break;
                }
            }
            catch (Exception exception)
            {
                Methods.DisplayReportResultTrack(exception);
            }
        }