public MainTabWindow_Inventory() { this.doCloseX = true; this.tabs.Add(new InventoryTab_Items()); this.tabs.Add(new InventoryTab_Buildings()); this.tabs = (from t in this.tabs orderby t.order descending select t).ToList <InventoryTab>(); this.curTab = this.tabs[0]; }