private void comboBoxMainProbaNrPart_SelectedIndexChanged(object sender, EventArgs e) { String proba = comboBoxMainProbaNrPart.GetItemText(comboBoxMainProbaNrPart.SelectedItem); if (proba != "") { int numar = controller.NumarParticipariProba(proba); textBoxMainNrPartic.Text = numar.ToString(); } else { textBoxMainNrPartic.Text = ""; } }