private void button1_Click(object sender, EventArgs e) { addproject p = new addproject(); this.Hide(); p.Show(); }
private void updateadd_Click(object sender, EventArgs e) { if (dataGridadd.SelectedCells.Count != 0) { int rw = dataGridadd.SelectedCells[0].RowIndex; int id = (int)dataGridadd.Rows[rw].Cells["Id"].Value; addproject se = new addproject(id); this.Hide(); se.Show(); } }