Пример #1
0
 public void addOption(ConfigOptionInfo option)
 {
     /** Decrement the number of options remaining so that we know when we can draw the form **/
     numberOfOptions--;
     /** Add the option to the hashtable **/
     options.Add((uint)option.getOptionid(), option);
     /** If it is a choice type we must get the choices for it before requesting the settings **/
     if ((ConfigType)option.getType() == ConfigType.Choice)
     {
         var cmd = Command.Config | Command.GetOptionChoices;
         _core.SendAsync(new Message(cmd).Add((uint)option.getOptionid()));
     }
 }