Пример #1
0
        public GuiBuilder(IWindow window)
        {
            xml = new XmlHandler(System.IO.Directory.GetCurrentDirectory(),"games.xml");

            this.window = window;

            profile_combo = window.getProfileCombo();
            tabs = window.getTabs();

            profiles = new Dictionary<int, XmlNode>();

            XmlNode games_node = xml.profile_xml.FirstChild;
            if(games_node.Name!="games")
                throw new Exception("nO LIKE");

            profile_combo.addItem(null,"Please Select A Game");
            profile_combo.setActiveIndex(0);

            int i = 1;
            foreach(XmlNode node in games_node.ChildNodes) {
                switch(node.Name) {
                case "game":
                    profile_combo.addItem(node.Attributes["name"].Value,node.Attributes["title"].Value);
                    profiles.Add(i,node);
                    i++;
                    break;
                }
            }

            profile_combo.selectionChanged += HandleProfile_comboselectionChanged;

            window.refresh();
        }
Пример #2
0
 public Ribbon()
 {
     ElementName     = "ribbon";
     startFromStrach = false;
     tabs            = new Tabs();
     contextTabs     = new ContextualTabs();
 }
Пример #3
0
 public Ribbon()
 {
     ElementName = "ribbon";
     startFromStrach = false;
     tabs = new Tabs();
     contextTabs = new ContextualTabs();
 }
Пример #4
0
 public TabSet()
 {
     ElementName = "tabSet";
     id          = new ElementId();
     tabs        = new TabSetTabs();
 }
Пример #5
0
 public static Umbraco.Core.Models.Blocks.BlockListModel GetTabBlocks(ITabs that) => that.Value <Umbraco.Core.Models.Blocks.BlockListModel>("tabBlocks");
Пример #6
0
 public static string GetAlignment(ITabs that) => that.Value <string>("alignment");
Пример #7
0
 public static bool GetTabStyle(ITabs that) => that.Value <bool>("tabStyle");
Пример #8
0
 public static string GetTabSize(ITabs that) => that.Value <string>("tabSize");