void SubeComboDoldur() // ŞUBE LİSTESİ { SubeComboBox.DataSource = null; MsjComboBox.DataSource = null; SikayetComboBox.DataSource = null; List <E_Sube> sube = new List <E_Sube>(); sube = BLL_Sube.SubeListe(); SubeComboBox.DataSource = sube; SubeComboBox.DisplayMember = "Ad"; SubeComboBox.ValueMember = "ID"; SubeComboBox.SelectedIndex = -1; List <E_Sube> sube2 = new List <E_Sube>(); sube2 = BLL_Sube.SubeListe(); MsjComboBox.DataSource = sube2; MsjComboBox.DisplayMember = "Ad"; MsjComboBox.ValueMember = "ID"; MsjComboBox.SelectedIndex = -1; List <E_Sube> sube3 = new List <E_Sube>(); sube3 = BLL_Sube.SubeListe(); SikayetComboBox.DataSource = sube3; SikayetComboBox.DisplayMember = "Ad"; SikayetComboBox.ValueMember = "ID"; SikayetComboBox.SelectedIndex = -1; }
void SubeComboDoldur() // ŞUBE COMBOBOX'I { // LİSTELERİ AYRI AYRI TANIMLAMAMIN SEBEBİ DATASOURCE AYNI OLAN COMBOBOXLARDAN 1.SİNDEN BİR DEĞER SEÇİLDİĞİNDE // 2.COMBOBOXINDA TEXTİ OTOMATİK İLK COMBOBOXIN TEXTİ OLUYOR. SubeComboBox1.DataSource = null; SubeComboBox2.DataSource = null; SubeComboBox3.DataSource = null; List <E_Sube> sube = new List <E_Sube>(); sube = BLL_Sube.SubeListe(); List <E_Sube> sube2 = new List <E_Sube>(); sube2 = BLL_Sube.SubeListe(); List <E_Sube> sube3 = new List <E_Sube>(); sube3 = BLL_Sube.SubeListe(); SubeComboBox1.DataSource = sube; SubeComboBox2.DataSource = sube2; SubeComboBox3.DataSource = sube3; SubeComboBox1.DisplayMember = "Ad"; SubeComboBox1.ValueMember = "ID"; SubeComboBox1.SelectedIndex = -1; SubeComboBox2.DisplayMember = "Ad"; SubeComboBox2.ValueMember = "ID"; SubeComboBox2.SelectedIndex = -1; SubeComboBox3.DisplayMember = "Ad"; SubeComboBox3.ValueMember = "ID"; SubeComboBox3.SelectedIndex = -1; }