Exemplo n.º 1
0
        public static void DeserializeAll(XElement xmlDropDowns)
        {
            /*
             * <Dropdowns>
             *   ...
             * </Dropdowns>
             */

            // Go through every dropdown
            foreach (XElement xmlDropDown in xmlDropDowns.Descendants("Dropdown"))
            {
                // Get id:
                string id = xmlDropDown.Attribute("id").Value;

                // If such a combobox exists, deserialize:
                if (DropDown.ContainsKey(id))
                {
                    DropDown.Get(id).Deserialize(xmlDropDown);
                }
            }
        }
Exemplo n.º 2
0
 public static void Add(string key, DropDown comboBox)
 {
     Dict.Add(key, comboBox);
 }