public GuncelleHasta_Aşı(Hasta_Aşı_Ekle o1) { InitializeComponent(); dateTimePicker1.Format = DateTimePickerFormat.Custom; dateTimePicker1.CustomFormat = "dd MM yyyy"; comboBox1.Text = o1.dataGridView3.CurrentRow.Cells[0].Value.ToString(); comboBox2.Text = o1.dataGridView3.CurrentRow.Cells[1].Value.ToString(); comboBox3.Text = o1.dataGridView3.CurrentRow.Cells[2].Value.ToString(); dateTimePicker1.Value = Convert.ToDateTime(o1.dataGridView3.CurrentRow.Cells[3].Value.ToString()); textBox1.Text = o1.dataGridView3.CurrentRow.Cells[4].Value.ToString(); o2 = o1; }
private void toolStripButton9_Click_1(object sender, EventArgs e) { Hasta_Aşı_Ekle ha = new Hasta_Aşı_Ekle(); ha.ShowDialog(); }