private void 查询ToolStripMenuItem_Click(object sender, EventArgs e) { if (fser == null) { fser = new FrmSerch(); } fser.sertb = Pathtb; fser.Serchstring = "pym"; fser.Disposed -= new EventHandler(fser_Disposed); fser.Disposed += new EventHandler(fser_Disposed); fser.Onserch -= new Serch(fser_Onserch); fser.Onserch += new Serch(fser_Onserch); fser.ShowDialog(); }
void fser_Disposed(object sender, EventArgs e) { fser = null; }