private void button2_Click(object sender, EventArgs e) { BusinessLayer getTitle = new BusinessLayer(); List <String> title = new List <String>(); title = getTitle.getTitle(); for (int i = 0; i < title.Count; i++) { comboBox1.Items.Add(title[i].ToString()); } }
private void button1_Click(object sender, EventArgs e) { BusinessLayer getTitle = new BusinessLayer(); List <String> title = new List <String>(); title = getTitle.getTitle(); for (int i = 0; i < title.Count; i++) { MessageBox.Show(title[i]); } }