예제 #1
0
        public void Load(IEnsoService service)
        {
            Debug.Assert(service != null);
            this.service = service;

            String uri = this.GetType().Name + ".rem";

            service.RegisterCommand(this, uri, translateCommand);
            service.RegisterCommand(this, uri, quitCommand);
        }
예제 #2
0
        public void Load(IEnsoService service)
        {
            Debug.Assert(service != null);
            this.service = service;

            String uri = this.GetType().Name + ".rem";
            service.RegisterCommand(this, uri, command);
        }
예제 #3
0
        public void Load(IEnsoService service)
        {
            Debug.Assert(service != null);
            this.service = service;

            String uri = this.GetType().Name + ".rem";

            foreach (EnsoCommand command in commands)
            {
                service.RegisterCommand(this, uri, command);
            }
        }
예제 #4
0
        public void Load(IEnsoService service)
        {
            Debug.Assert(service != null);
            this.service = service;

            String uri = this.GetType().Name + ".rem";

            service.RegisterCommand(this, uri, command);
            service.SetCommandValidPostfixes(command,
                                             new String[] { "", POSTFIX_LOWER, POSTFIX_UPPER,
                                                            POSTFIX_NUMERIC });
        }
예제 #5
0
        public void Load(IEnsoService service)
        {
            Debug.Assert(service != null);
            this.service = service;

            String uri = this.GetType().Name + ".rem";

            service.RegisterCommand(this, uri, command);
            service.SetCommandValidPostfixes(command,
                new String[] { "", POSTFIX_LOWER, POSTFIX_UPPER,
                                POSTFIX_NUMERIC });
        }
        public void Load(IEnsoService service)
        {
            Debug.Assert(service != null);
            this.service = service;

            String uri = this.GetType().Name + ".rem";

            foreach (EnsoCommand command in commands)
            {
                service.RegisterCommand(this, uri, command);

                CommandDesc desc = commandActions[command.Name];
                if (desc.getPostfixes != null)
                    service.SetCommandValidPostfixes(command,
                        desc.getPostfixes());
            }
        }
예제 #7
0
        public void Load(IEnsoService service)
        {
            Debug.Assert(service != null);
            this.service = service;

            String uri = this.GetType().Name + ".rem";

            foreach (EnsoCommand command in commands)
            {
                service.RegisterCommand(this, uri, command);

                CommandDesc desc = commandActions[command.Name];
                if (desc.getPostfixes != null)
                {
                    service.SetCommandValidPostfixes(command,
                                                     desc.getPostfixes());
                }
            }
        }