private void OnMessagesSent(CANDW sender, EventArgs e) { if (this.onMessagesSent == null) { this.onMessagesSent = this.OnMessagesSent; } if (Program.CheckAndInvoke(this.MessagesSent, this.onMessagesSent, sender, e)) { this.MessagesSent(sender, e); } }
private void OnErrorReceived(CANDW sender, ErrorReceivedEventArgs e) { if (this.onErrorReceived == null) { this.onErrorReceived = this.OnErrorReceived; } if (Program.CheckAndInvoke(this.ErrorReceived, this.onErrorReceived, sender, e)) { this.ErrorReceived(sender, e); } }