コード例 #1
0
ファイル: CANDW_43.cs プロジェクト: valoni/NETMF-Gadgeteer
        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);
            }
        }
コード例 #2
0
ファイル: CANDW_43.cs プロジェクト: valoni/NETMF-Gadgeteer
        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);
            }
        }