public KexBinding(string group, Key key, ModifierKeys modifier, string commandName, IKexiCommand action, object[] commandArguments = null) { Key = key; Modifier = modifier; Command = action; CommandName = commandName; CommandArguments = commandArguments; Group = group; }
public void Execute(IKexiCommand command, object arg = null) { if (command.CanExecute(arg)) { command.Execute(arg); var commandName = command.GetType().Name; if (commandName != nameof(RepeatLastCommandCommand)) { LastCommand = command; } if (command is IUndoable undoable) { LastUndoable = undoable; } } }
public KexDoubleBinding(string group, Key key, ModifierKeys modifier, Key secondKey, ModifierKeys secondModifier, string action, IKexiCommand command) : base(group, key, modifier, action, command) { SecondKey = secondKey; SecondModifier = secondModifier; }