示例#1
0
文件: NiForm.cs 项目: netide/netide
        public NiForm()
        {
            CommandMapper = new NiCommandMapper();

            CommandMapper.Add(
                NiResources.Help_ViewHelp,
                p => ShowHelp()
            );
        }
示例#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();
        }
示例#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();
        }
示例#4
0
 public CommandTarget(NiCommandMapper commandMapper)
 {
     _commandMapper = commandMapper;
 }
示例#5
0
文件: NiForm.cs 项目: netide/netide
 public CommandMapperWrapper(NiForm form)
 {
     _form = form;
     _commandMapper = _form.CommandMapper;
 }
示例#6
0
 public CommandTarget(NiCommandMapper commandMapper)
 {
     _commandMapper = commandMapper;
 }