public GuncelleVeterinerEkle(VeterinerEkle v1)
        {
            InitializeComponent();

            dateTimePicker1.Format       = DateTimePickerFormat.Custom;
            dateTimePicker1.CustomFormat = "dd MM yyyy";

            textBox1.Text         = v1.dataGridView1.CurrentRow.Cells[0].Value.ToString();
            dateTimePicker1.Value = Convert.ToDateTime(v1.dataGridView1.CurrentRow.Cells[1].Value.ToString());
            textBox2.Text         = v1.dataGridView1.CurrentRow.Cells[2].Value.ToString();
            textBox4.Text         = v1.dataGridView1.CurrentRow.Cells[3].Value.ToString();
            textBox3.Text         = v1.dataGridView1.CurrentRow.Cells[4].Value.ToString();
            v2 = v1; /*v2 yi listelemek icin*/
        }
示例#2
0
        private void toolStripButton3_Click_1(object sender, EventArgs e)
        {
            VeterinerEkle v1 = new VeterinerEkle();

            v1.ShowDialog();
        }