示例#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");