private void button1_Click(object sender, EventArgs e) { User <string> c = (User <string>)comboBox1.SelectedItem; Award a = (Award)comboBox2.SelectedItem; awardLogic.presentAward(c.ID, a.ID); }