private void addRemoveUserDetail_form_Load(object sender, EventArgs e) { gender.Items.Add("נקבה"); gender.Items.Add("זכר"); db_connection k = new db_connection(); list = new List <string> [3]; list[0] = new List <string>(); list[1] = new List <string>(); list[2] = new List <string>(); list = k.SelectUser(); if (list[0].Count > 0) { userList.DataSource = list[0]; } }
private void patitionetSelect_Form_Load(object sender, EventArgs e) { db_connection k = new db_connection(); list = new List <string> [5]; list[0] = new List <string>(); list[1] = new List <string>(); list[2] = new List <string>(); list[3] = new List <string>(); list[4] = new List <string>(); list = k.SelectUser(); if (list[0].Count > 0) { userlist.DataSource = list[0]; } int indx = userlist.SelectedIndex; }