private void BtnDispYes4_Click(object sender, EventArgs e) { popup4 = new frmGM11_Pop04(); popup4.to_day = bandedGridView1.GetFocusedRowCellValue("pay_date").ToString(); popup4.FormClosed += popup4_FormClosed; popup4.ShowDialog(); }
private void popup4_FormClosed(object sender, FormClosedEventArgs e) { popup4.FormClosed -= popup4_FormClosed; popup4 = null; }