private void toolStripButton4_Click_1(object sender, EventArgs e) { AşıEkle asiEkle = new AşıEkle(); // asiEkle.MdiParent = this; asiEkle.ShowDialog(); }
public GuncelleAsiTanimi(AşıEkle a1) { InitializeComponent(); dateTimePicker1.Format = DateTimePickerFormat.Custom; dateTimePicker1.CustomFormat = "dd MM yyyy"; textBox2.Text = a1.dataGridView1.CurrentRow.Cells[0].Value.ToString(); textBox1.Text = a1.dataGridView1.CurrentRow.Cells[1].Value.ToString(); numericUpDown1.Value = Convert.ToInt16(a1.dataGridView1.CurrentRow.Cells[2].Value.ToString()); numericUpDown2.Value = Convert.ToInt16(a1.dataGridView1.CurrentRow.Cells[3].Value.ToString()); textBox3.Text = a1.dataGridView1.CurrentRow.Cells[4].Value.ToString(); dateTimePicker1.Value = Convert.ToDateTime(a1.dataGridView1.CurrentRow.Cells[5].Value.ToString()); a2 = a1; }