Пример #1
0
            public override object GetValue(object component)
            {
                AppCommands map = component as AppCommands;

                if (null == map)
                {
                    throw new ArgumentException("component is not a CommandMap instance", "component");
                }
                return(map.Commands[this.Name]);
            }
Пример #2
0
 public CommandMapDescriptor(ICustomTypeDescriptor descriptor, AppCommands map) : base(descriptor)
 {
     _map = map;
 }