Ejemplo n.º 1
0
        public object GetCommandProperty(string commandName, string propertyName)
        {
            object         obj    = (object)null;
            ICommandTarget target = this.targets.GetTarget(commandName);

            if (target != null)
            {
                obj = target.GetCommandProperty(commandName, propertyName);
            }
            if (obj == null)
            {
                obj = this.properties.GetProperty(commandName, propertyName);
            }
            return(obj);
        }