Exemplo n.º 1
0
            public void Load(string fileName, DomNode node)
            {
                foreach (DomNode child in node)
                {
                    switch (child.Name.ToLower())
                    {
                    case "background": Background = UIDefaults.LoadBackground(fileName, child); break;

                    case "border": Border = UIDefaults.LoadBorder(fileName, child); break;
                    }
                }
            }
Exemplo n.º 2
0
            public void Load(string fileName, DomNode node)
            {
                foreach (DomNode child in node)
                {
                    switch (child.Name.ToLower())
                    {
                    case "menu-background": Background = UIDefaults.LoadBackground(fileName, child); break;

                    case "menu-border": Border = UIDefaults.LoadBorder(fileName, child); break;

                    case "menu-padding": MenuPadding.Load(fileName, child); break;

                    case "item-padding": ItemPadding.Load(fileName, child); break;

                    case "item-spacing": ItemSpacing.Load(fileName, child); break;

                    case "separator": Separator = UIDefaults.LoadBackground(fileName, child); break;

                    case "item-states": ItemStates.Load(fileName, child); break;

                    case "font": Font = UIDefaults.LoadFont(fileName, child); break;
                    }
                }
            }