Example #1
0
 public void ToggleSelection(int pos)
 {
     try
     {
         CurrentSelectedIdx = pos;
         if (SelectedItems.Get(pos, false))
         {
             SelectedItems.Delete(pos);
         }
         else
         {
             SelectedItems.Put(pos, true);
         }
         NotifyItemChanged(pos);
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }