public GuncelleStok(Stok_Ekle s1) { InitializeComponent(); textBox1.Text = s1.dataGridView1.CurrentRow.Cells[0].Value.ToString(); textBox2.Text = s1.dataGridView1.CurrentRow.Cells[1].Value.ToString(); textBox5.Text = s1.dataGridView1.CurrentRow.Cells[2].Value.ToString(); numericUpDown1.Value = Convert.ToInt16(s1.dataGridView1.CurrentRow.Cells[3].Value.ToString()); textBox3.Text = s1.dataGridView1.CurrentRow.Cells[4].Value.ToString(); textBox4.Text = s1.dataGridView1.CurrentRow.Cells[5].Value.ToString(); s2 = s1; }
private void toolStripButton5_Click_1(object sender, EventArgs e) { Stok_Ekle s1 = new Stok_Ekle(); s1.ShowDialog(); }