示例#1
0
        public RcpaStringComboBox(ComboBox cb, String key, string[] values, string defaultValue)
        {
            this.cb = cb;
            cb.Items.Clear();
            cb.Items.AddRange(values);
            cb.SelectedText = defaultValue;

            Adaptor = new OptionFileStringComboBoxAdaptor(cb, key, defaultValue);

            Childrens.Add(cb);
        }
示例#2
0
    public RcpaStringComboBox(ComboBox cb, String key, string[] values, string defaultValue)
    {
      this.cb = cb;
      cb.Items.Clear();
      cb.Items.AddRange(values);
      cb.SelectedText = defaultValue;

      Adaptor = new OptionFileStringComboBoxAdaptor(cb, key, defaultValue);

      Childrens.Add(cb);
    }