Пример #1
0
        private void dataGridView1_CellEnter(object sender, DataGridViewCellEventArgs e)
        {
            Sahip sahipForm = new Sahip();
            Cins  cinsForm  = new Cins();
            Tur   turForm   = new Tur();

            txtHayvanNumarası.Text    = dataGridView1.CurrentRow.Cells[0].Value.ToString();
            txtHayvanAdi.Text         = dataGridView1.CurrentRow.Cells[2].Value.ToString();
            txtSahipNumarası.Text     = dataGridView1.CurrentRow.Cells[1].Value.ToString();
            txtHayvanYaşi.Text        = dataGridView1.CurrentRow.Cells[3].Value.ToString();
            txtCinsNumarası.Text      = dataGridView1.CurrentRow.Cells[4].Value.ToString();
            txtHayvanAtes.Text        = dataGridView1.CurrentRow.Cells[5].Value.ToString();
            txtVeterinerNumarası.Text = dataGridView1.CurrentRow.Cells[6].Value.ToString();
            txtCinsiyetNumarası.Text  = dataGridView1.CurrentRow.Cells[7].Value.ToString();

            a = txtCinsNumarası.Text;
            b = Convert.ToInt32(a) - 1;


            cbHayvanCinsi.Text = cinsForm.dataGridView1.Rows[b].Cells[1].Value.ToString();



            //cbHayvanCinsi.DisplayMember = "cinsAdi";
            //cbHayvanCinsi.ValueMember = "cinsNo";
            //cbHayvanCinsi.DataSource = dt4;


            a = txtSahipNumarası.Text;
            b = Convert.ToInt32(a) - 1;
            //  txtSahipAdi.Text=sahipForm.dataGridView2.Rows[b].Cells[1].Value.ToString();
            baglanti.Close();
        }
Пример #2
0
        private void button9_Click(object sender, EventArgs e)
        {
            Cins cinsForm = new Cins();

            cinsForm.Show();
        }