private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { //int i = dataGridView1.Rows[0].Index; //string s = (string)dataGridView1.Rows[i].Cells[5].Value; //MessageBox.Show(s); addreturn rb = new addreturn(); mdi.main(encapulation.Parent1, rb); }
private void btnadd_Click(object sender, EventArgs e) { addreturn = new addreturn(); addreturn.Text = "Add"; mdi.main(encapulation.Parent1, addreturn, addreturn.Text); }