private void button2_Click(object sender, EventArgs e) { Views.Montgat.AddEdit mn = new AddEdit(); mn.textBox1.Text = DataGrid.CurrentRow.Cells[1].Value.ToString(); mn.textBox2.Text = DataGrid.CurrentRow.Cells[2].Value.ToString(); mn.metroTextBox3.Text = DataGrid.CurrentRow.Cells[0].Value.ToString(); mn.Text = "تعديل المنتج"; mn.button1.Text = "تعديل"; mn.ShowDialog(); fill(); }
private void button1_Click(object sender, EventArgs e) { Views.Montgat.AddEdit mn = new AddEdit(); mn.ShowDialog(); fill(); }