public NiForm() { CommandMapper = new NiCommandMapper(); CommandMapper.Add( NiResources.Help_ViewHelp, p => ShowHelp() ); }
public TextEditorControl() { ElementProvider.Install(new TextEditorElementProvider(this)); ActiveTextAreaControl.TextArea.DoProcessDialogKey += TextArea_DoProcessDialogKey; ActiveTextAreaControl.TextArea.GotFocus += TextArea_GotFocus; ActiveTextAreaControl.TextArea.LostFocus += TextArea_LostFocus; CommandMapper = new NiCommandMapper(); _commandTarget = new CommandTarget(CommandMapper); FindTarget = new FindTargetImpl(ActiveTextAreaControl); BuildCommands(); RemoveDefaultKeyBindings(); }
public CommandTarget(NiCommandMapper commandMapper) { _commandMapper = commandMapper; }
public CommandMapperWrapper(NiForm form) { _form = form; _commandMapper = _form.CommandMapper; }