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); } }
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); } }
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); } }