示例#1
0
 private void BtAddNotes_Click(object sender, EventArgs e)
 {
     using (NewNotes notesView = new NewNotes(customerID))
     {
         notesView.ShowDialog();
     }
     RefreshNotes();
 }
示例#2
0
        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();
        }