Beispiel #1
0
        void AramaKriterleriYukle()
        {
            if (comboBox1.SelectedIndex == 0)
            {
                txt_sorgu.AutoCompleteCustomSource.AddRange(HastaProvider.GetAllDosyaNo().ToArray());
            }
            else
            {
                txt_sorgu.AutoCompleteCustomSource.AddRange(HastaProvider.GetAllTC().ToArray());
            }
            txt_sorgu.Text = "";
            txt_sorgu.Focus();
            comboBox1.SelectedIndex = 0;
            txt_sorgu.Focus();
            Dictionary <string, string> liste = SevkProvider.GetAllIslemler();

            foreach (var item in liste)
            {
                comboBox_Islem.Items.Add(item.Key);
            }
            comboBox_Islem.SelectedIndex = 0;

            comboBox_Doktor.DataSource    = SevkProvider.GetAllDoktorNo();
            comboBox_Poliklink.DataSource = SevkProvider.GetAllPoliklink();
        }
Beispiel #2
0
 private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (comboBox1.SelectedIndex == 0)
     {
         txt_sorgu.AutoCompleteCustomSource.AddRange(HastaProvider.GetAllDosyaNo().ToArray());
     }
     else
     {
         txt_sorgu.AutoCompleteCustomSource.AddRange(HastaProvider.GetAllTC().ToArray());
     }
     txt_sorgu.Text = "";
     txt_sorgu.Focus();
 }