コード例 #1
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)
     {
         Console.WriteLine(exception);
     }
 }
コード例 #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);
     }
 }
コード例 #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);
            }
        }