private void BtnDispYes5_Click(object sender, EventArgs e) { popup5 = new frmGM11_Pop05(); popup5.to_day = bandedGridView1.GetFocusedRowCellValue("pay_date").ToString(); popup5.FormClosed += popup5_FormClosed; popup5.ShowDialog(); }
private void popup5_FormClosed(object sender, FormClosedEventArgs e) { popup5.FormClosed -= popup5_FormClosed; popup5 = null; }