private void efwSimpleButton1_Click(object sender, EventArgs e) { popup = new frmMM03_Pop01(); popup.ShowDialog(); popup.Id = 0; }
private void BtnDispYes_Click(object sender, EventArgs e) { popup = new frmMM03_Pop01(); popup.Id = Convert.ToInt32(gridView1.GetFocusedRowCellValue("id").ToString()); popup.FormClosed += popup_FormClosed; popup.ShowDialog(); }
private void popup_FormClosed(object sender, FormClosedEventArgs e) { popup.FormClosed -= popup_FormClosed; popup = null; }