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]); }
public CommandMapDescriptor(ICustomTypeDescriptor descriptor, AppCommands map) : base(descriptor) { _map = map; }