public override PropertyDescriptorCollection GetProperties() { PropertyDescriptor[] props = new PropertyDescriptor[this._map.Commands.Count]; int pos = 0; foreach (KeyValuePair <string, ICommand> command in this._map.Commands) { props[pos++] = new CommandMap.CommandPropertyDescriptor(command); } return(new PropertyDescriptorCollection(props)); }
public override PropertyDescriptorCollection GetProperties() { PropertyDescriptor[] props = new PropertyDescriptor[this._map.Commands.Count]; int pos = 0; foreach (KeyValuePair<string, ICommand> command in this._map.Commands) { props[pos++] = new CommandMap.CommandPropertyDescriptor(command); } return new PropertyDescriptorCollection(props); }