private void Doc_c_form_Load(object sender, EventArgs e) { List <List <string> > years = IORepos.GetUniqYears(); foreach (List <string> i in years) { datefrom_combox.Items.Add(i[0]); dateto_combobox.Items.Add(i[0]); } if (years.Count > 0) { datefrom_combox.SelectedIndex = 0; dateto_combobox.SelectedIndex = 0; } }