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