示例#1
0
 private void RegisterCommand(CustomCommand command)
 {
     if (command.Expression.IsValid)
     {
         ExpressionParser.AddCommand(command.Name, new ExpressionCommand(command.Expression));
         command.IsRegistered = true;
     }
 }
示例#2
0
        private void Register()
        {
            if (!string.IsNullOrEmpty(Name))
            {
                ExpressionParser.AddCommand(Name, this);
            }

            _registeredName = Name;
        }