private void buttonAddNote_Click(object sender, EventArgs e) { this.Hide(); AddNote ss = new AddNote(this.userId); ss.Show(); }
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) { DataGridViewRow row = this.dataGridViewNotes.Rows[e.RowIndex]; String noteId = row.Cells["id"].Value.ToString(); this.Hide(); AddNote ss = new AddNote(userId, noteId); ss.Show(); } }