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