private void btnReport_Click(object sender, EventArgs e) { IWin32Window pWin = null; m_Map = MapControl.Map; if (m_Map == null) { return; } if (pReport == null || pReport.IsDisposed) { pReport = new Report.Frm_Report(); } if (!pReport.Visible) { // pReport.Set_HookHelper = m_hookHelper; pReport.Show(pWin); } pReport.FormClosing += new FormClosingEventHandler(pReport_FormClosing); }
void pReport_FormClosing(object sender, FormClosingEventArgs e) { pReport = null; }