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

            _registeredName = Name;
        }