示例#1
0
            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));
            }
示例#2
0
 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);
 }