private void BtAddNotes_Click(object sender, EventArgs e) { using (NewNotes notesView = new NewNotes(customerID)) { notesView.ShowDialog(); } RefreshNotes(); }
private void DgvCustomerNotes_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { DataGridView gridView = (DataGridView)sender; int customerNotesID = (int)gridView.Rows[e.RowIndex].Cells["CustomerNotes_ID"].Value; using (NewNotes notesView = new NewNotes(customerID, customerNotesID)) { notesView.ShowDialog(); } RefreshNotes(); }