示例#1
0
        private void btn_kaydet_Click(object sender, EventArgs e)
        {
            Sehir_Guncelle guncelle = new Sehir_Guncelle(il_ID, ilce_ID);

            guncelle.btn_ilce.Hide();

            if (combo_iller.Text == "")
            {
                MessageBox.Show("Lutfen Guncellemek istediginiz IL'i seciniz..!", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                if (guncelle.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    String iller = "Select il_ID,ilAdi from Iller_Tablosu Order by ilAdi ";
                    combobox_veriler(combo_iller, iller, "il_ID", "ilAdi", il_ID, ilad);
                }
                this.Show();
            }
        }
示例#2
0
        private void btn_ilce_guncelle_Click(object sender, EventArgs e)
        {
            Sehir_Guncelle guncelle = new Sehir_Guncelle(il_ID, ilce_ID);

            guncelle.btn_kaydet.Hide();

            if (comboBox_ilce.Text == "")
            {
                MessageBox.Show("Lutfen Guncellemek istediginiz ILCE'yi seciniz..!", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                guncelle.label1.Text = "Ilce Guncelle :";
                if (guncelle.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    String sorgu2 = "Select ilce_ID,ilceAdi from Ilceler_Tablosu Where il_id = '" + il_ID + "' ";
                    combobox_veriler(comboBox_ilce, sorgu2, "ilce_ID", "ilceAdi", ilce_ID, ilcead);
                }
                this.Show();
            }
        }