Exemplo n.º 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));
            }
Exemplo n.º 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);
 }