public ShowMatch() { InitializeComponent(); UCTab tab = new UCTab(); TabItem tabItem = new TabItem() { Header = "Trận " + (1).ToString() }; tabItem.Content = tab; tcMatch.Items.Add(tabItem); }
private void InitMatch() { for (int i = 0; i < storedMatch.GameCount; i++) { UCTab tab = new UCTab(storedMatch.Games[i]); TabItem tabItem = new TabItem() { Header = "Trận " + (i + 1).ToString() }; tabItem.Content = tab; tcMatch.Items.Add(tabItem); } }
public Test() { InitializeComponent(); //storedMatch = await Helper.GetMatchAsync(26); //InitMatch(); //storedMatch = match; UCTab tab = new UCTab(); TabItem tabItem = new TabItem() { Header = "Trận " + (1).ToString() }; tabItem.Content = tab; tcMatch.Items.Add(tabItem); //ShowPlayerInformations(); }