private void toolStripMenuItem_Print_Click(object sender, EventArgs e) { try { if (formIn == null) { formIn = new XtraForm1("BÁO CÁO DANH MỤC HUYỆN", table_DSHuyen); formIn.FormClosed += new FormClosedEventHandler(formIn_FormClosed); formIn.Show(); } else { formIn.Activate(); } } catch { } }
void formIn_FormClosed(object sender, FormClosedEventArgs e) { formIn = null; }