public frmLoadActivity() { InitializeComponent(); eventIn = new ManualResetEvent(false); func = new ActivityCreator.NotifyLoadInstance(p_NotifyLoadInstanceEvent); p.NotifyLoadInstanceEvent += func; }
private void frmLoadActivity_FormClosed(object sender, FormClosedEventArgs e) { p.NotifyLoadInstanceEvent -= func; func = null; }