public Scoreboard() { InitializeComponent(); AllSelData asd = new AllSelData(); for (int i = 0; i < asd.getScore1Count(); i++) { tabScoreCommand.Items.Add(asd.getScore1(i)); } for (int i = 0; i < asd.getScore2Count(); i++) { tabScoreAtVar.Items.Add(asd.getScore2(i)); } for (int i = 0; i < asd.getScore3Count(); i++) { tabScoreData1.Items.Add(asd.getScore3(i)); } for (int i = 0; i < asd.getScore4Count(); i++) { tabScoreData2.Items.Add(asd.getScore4(i)); } tabScoreCommand.SelectedIndex = 0; tabScoreAtVar.SelectedIndex = 0; tabScoreData1.SelectedIndex = 0; tabScoreData2.SelectedIndex = 0; }