public void ButtonPressed(object sender, EventArgs e) { if (((ASMultiSelectActionSheetButton)sender).Style == ASMultiSelectActionSheetButtonStyle.MultiSelect) { ((ASMultiSelectActionSheetButton)sender).Selected = !((ASMultiSelectActionSheetButton)sender).Selected; if (((ASMultiSelectActionSheetButton)sender).Selected || Buttons.Any(b => b.Selected)) { ActionButton.Enabled = true; } else { ActionButton.Enabled = false; } return; } if (ButtonPressedAction != null) { var indexPath = NSIndexPath.FromRowSection(((ASMultiSelectActionSheetButton)sender).Row, Index); ButtonPressedAction.Invoke(indexPath); } }
private void OnButtonPress() { ButtonPressedAction?.Invoke(); }