Ejemplo n.º 1
0
        public NiForm()
        {
            CommandMapper = new NiCommandMapper();

            CommandMapper.Add(
                NiResources.Help_ViewHelp,
                p => ShowHelp()
            );
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
 public CommandTarget(NiCommandMapper commandMapper)
 {
     _commandMapper = commandMapper;
 }
Ejemplo n.º 5
0
 public CommandMapperWrapper(NiForm form)
 {
     _form = form;
     _commandMapper = _form.CommandMapper;
 }
Ejemplo n.º 6
0
 public CommandTarget(NiCommandMapper commandMapper)
 {
     _commandMapper = commandMapper;
 }