public void OnCommandButtonsAction(object sender, CommandButtonType commandButtonType, string customCommand, out bool cancelled) { cancelled = false; if (CommandButtonsAction != null) { NeedToValidate = true; var args = new CommandButtonsEventArgs(commandButtonType, this, customCommand); CommandButtonsAction(sender, args); if (args.Cancel) { cancelled = true; } } }
public CommandButtonsEventArgs(CommandButtonType buttonType, ContentView view, string customCommand) { ButtonType = buttonType; ContentView = view; CustomCommand = customCommand; }
public void OnCommandButtonsAction(object sender, CommandButtonType commandButtonType, out bool cancelled) { OnCommandButtonsAction(sender, commandButtonType, null, out cancelled); }
public void OnCommandButtonsAction(object sender, CommandButtonType commandButtonType, string customCommand, out bool cancelled) { cancelled = false; if (CommandButtonsAction != null) { NeedToValidate = true; var args = new CommandButtonsEventArgs(commandButtonType, this, customCommand); CommandButtonsAction(sender, args); if (args.Cancel) cancelled = true; } }