public void CleanEvent() { try { foreach (Delegate d in this.evtDataReceive.GetInvocationList()) { this.evtDataReceive -= (EventHandler<MvaWacohForceMessageEventArgs>)d; } } catch (Exception ex) { MvaLog.Write(ex); } }
void DisposeSelf() { try { this.Close(); } catch (Exception ex) { MvaLog.Write(ex); } }