private void add_Click(object sender, EventArgs e) { change_contract f = new change_contract(); f.Show(); this.Close(); }
private void cha_Click(object sender, EventArgs e) { string[] arrayClient = new string[dataGridView1.ColumnCount]; for (int i = 0; i < dataGridView1.ColumnCount; i++) { arrayClient[i] = dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[i].Value.ToString(); } change_contract f = new change_contract(arrayClient); f.Show(); this.Close(); }