private void OnClick(AddPollAdapterClickEventArgs args)
 {
     try
     {
         var item = AnswersList[args.Position];
         item.Answer = args.Text;
         args.Input.RequestFocus();
         ItemClick?.Invoke(this, args);
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
예제 #2
0
 private void Click(AddPollAdapterClickEventArgs args)
 {
     try
     {
         var item = AnswersList[args.Position];
         item.Answer = args.Text;
         args.Input.RequestFocus();
         ItemClick?.Invoke(this, args);
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
예제 #3
0
 private void CloseClickListener(AddPollAdapterClickEventArgs args)
 {
     if (AnswersList.Count > 2)
     {
         var item = AnswersList[args.Position];
         AnswersList.Remove(item);
         NotifyDataSetChanged();
         ItemLongClick?.Invoke(this, args);
     }
     else
     {
         Snackbar mySnackbar = Snackbar.Make(args.View, ActivityContext.GetText(Resource.String.Lbl2_PollsLimitTwo), BaseTransientBottomBar.LengthShort);
         mySnackbar.Show();
     }
 }