public void Edit() { int customerId = (int)customerGridView.SelectedRows[0].Cells[0].Value; var customerEdit = new CustomerEdit(customerId); customerEdit._refreshDataGridView += new CustomerEdit.DoEvent(LoadDataGrid); customerEdit.Show(); }