Beispiel #1
0
        private void kayıtGüncelleToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            kayitekle kytekle = new kayitekle();

            kytekle.Show();
            baglanti bgln = new baglanti();

            bgln.baglan();
            SqlCommand    cmd = new SqlCommand("select ilçeadı from ilçeler", bgln.baglan());
            SqlDataReader rd  = cmd.ExecuteReader();

            while (rd.Read())
            {
                kytekle.cbilçe.Items.Add(rd[0].ToString()); //rd[0] İLCEAD
            }
            bgln.baglan().Close();
            kytekle.textBox1.Text    = dataGridView1.CurrentRow.Cells[0].Value.ToString();
            kytekle.dtpzaman.Text    = dataGridView1.CurrentRow.Cells[1].Value.ToString();
            kytekle.txtadsoyad.Text  = dataGridView1.CurrentRow.Cells[2].Value.ToString();
            kytekle.cbkurum.Text     = dataGridView1.CurrentRow.Cells[3].Value.ToString();
            kytekle.txttel.Text      = dataGridView1.CurrentRow.Cells[4].Value.ToString();
            kytekle.txtsonuc.Text    = dataGridView1.CurrentRow.Cells[15].Value.ToString();
            kytekle.txtsikayet.Text  = dataGridView1.CurrentRow.Cells[5].Value.ToString();
            kytekle.cbmah.Text       = dataGridView1.CurrentRow.Cells[9].Value.ToString();
            kytekle.txtinceleme.Text = dataGridView1.CurrentRow.Cells[14].Value.ToString();
            kytekle.txtilgili.Text   = dataGridView1.CurrentRow.Cells[6].Value.ToString();
            kytekle.cbilçe.Text      = dataGridView1.CurrentRow.Cells[8].Value.ToString();
            kytekle.txtic.Text       = dataGridView1.CurrentRow.Cells[13].Value.ToString();
            kytekle.txtdis.Text      = dataGridView1.CurrentRow.Cells[12].Value.ToString();
            kytekle.txtcadde.Text    = dataGridView1.CurrentRow.Cells[10].Value.ToString();
            kytekle.txtaciklama.Text = dataGridView1.CurrentRow.Cells[7].Value.ToString();
            kytekle.txtapt.Text      = dataGridView1.CurrentRow.Cells[11].Value.ToString();
        }
Beispiel #2
0
        public mainform()
        {
            InitializeComponent();
            kytekle  = new kayitekle();
            kytliste = new kayıtlistesi();
            grs      = new giris();
            sfrdgstr = new sifredegistir();

            kytliste.mfrm = this;
            kytekle.mfrm  = this;
        }
Beispiel #3
0
        private void kayıtEkleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            kayitekle frmKayit = new kayitekle(); //mainformdan Kayıt ekleyi cagırdık

            frmKayit.MdiParent = this;
            frmKayit.Show();
            baglanti bgln = new baglanti();

            bgln.baglan();

            SqlCommand    cmd = new SqlCommand("select ilçeadı from ilçeler", bgln.baglan());
            SqlDataReader rd  = cmd.ExecuteReader();

            while (rd.Read())
            {
                frmKayit.cbilçe.Items.Add(rd[0].ToString()); //rd[0] İLCEAD
            }
            bgln.baglan().Close();
        }
Beispiel #4
0
        private void kayıtEkleToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            kayitekle kytekle = new kayitekle();

            kytekle.Show();
        }