コード例 #1
0
        /// <summary>
        /// Remove call
        /// </summary>
        /// <param name="adapterPosition">Index.</param>
        void RemoveCall(int adapterPosition)
        {
            var call = _calls[adapterPosition];

            RunService.RemoveCall(_repository, call);

            _adapter.NotifyItemRemoved(adapterPosition);
            TogglePlaceholderVisibility();
        }
コード例 #2
0
 /// <summary>
 /// Remove Call
 /// </summary>
 /// <param name="adapterPosition">Adapter position.</param>
 /// <param name="action">Action.</param>
 void OnCallAction(int adapterPosition, CallViewHolderAction action)
 {
     if (action == CallViewHolderAction.Remove)
     {
         var call = _calls[adapterPosition];
         RunService.RemoveCall(_repository, call);
         //_adapter.NotifyItemChanged(adapterPosition);
     }
 }