private void getCategories() { Categories temp = QuizClient.GetCategories(stream); for (int i = 0; i < 9; i++) { if (i < temp.quizes.Count()) { categories[i].Text = temp.quizes[i]; } else { categories[i].Visible = false; } } }
public void LoadData() { Categories categories = QuizClient.GetCategories(stream); comboBox1.Items.AddRange(categories.quizes); }