private void AddGestures(ViewCell cell, UITableViewCell tableViewCell, UITableView tableView) { if (VisitActionDetailsPage.CurrentInstance.IsEditable) { if (VisitActionDetailsPage.CurrentInstance.SingleTypeCode != null) { tableViewCell.AddGestureRecognizer(LongPressGestureRecognizer.CreateGesture(tableView, cell)); } } else { tableViewCell.RemoveGestureRecognizer(LongPressGestureRecognizer.CreateGesture(tableView, cell)); } }