Example #1
0
        public ToggleButton(Core core, string name)
        {
            this.core = core;
            this.name = name;
            this.value = false;

            this.yesRadioListItem = new RadioListItem(name, "1", core.Prose.GetString("YES"));
            this.noRadioListItem = new RadioListItem(name, "0", core.Prose.GetString("NO"));
        }
Example #2
0
 public void Add(string key, string text)
 {
     RadioListItem item = new RadioListItem(Name, key, text);
     if (!itemKeys.ContainsKey(item.Key))
     {
         items.Add(item);
         itemKeys.Add(item.Key, item);
     }
 }
Example #3
0
 public void Add(string key, string text, string icon, bool selectable)
 {
     RadioListItem item = new RadioListItem(Name, key, text, icon, selectable);
     if (!itemKeys.ContainsKey(item.Key))
     {
         items.Add(item);
         itemKeys.Add(item.Key, item);
     }
 }
Example #4
0
 /// <summary>
 /// Add a radio list item to the select box.
 /// </summary>
 /// <param name="item"></param>
 public void Add(RadioListItem item)
 {
     if (!itemKeys.ContainsKey(item.Key))
     {
         items.Add(item);
         itemKeys.Add(item.Key, item);
     }
 }