コード例 #1
0
ファイル: CommuniPortManager.cs プロジェクト: wwkkww1983/yh
 /// <summary>
 ///
 /// </summary>
 /// <param name="e"></param>
 protected void OnCommuniPortReceived(CommuniPortReceivedEventArgs e)
 {
     if (this.CommuniPortReceivedEvent != null)
     {
         CommuniPortReceivedEventHandler t = this.CommuniPortReceivedEvent;
         t(this, e);
     }
 }
コード例 #2
0
ファイル: CommuniPortManager.cs プロジェクト: wwkkww1983/yh
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void sckcp_ReceivedEvent(object sender, EventArgs e)
        {
            SocketCommuniPort sckcp = sender as SocketCommuniPort;

            byte[] bytes = sckcp.Read();
            CommuniPortReceivedEventArgs e2 = new CommuniPortReceivedEventArgs(sckcp, bytes);

            OnCommuniPortReceived(e2);
        }
コード例 #3
0
ファイル: CommuniPortManager.cs プロジェクト: hkiaipc/c2
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void sckcp_ReceivedEvent(object sender, EventArgs e)
 {
     SocketCommuniPort sckcp = sender as SocketCommuniPort;
     byte[] bytes = sckcp.Read();
     CommuniPortReceivedEventArgs e2 = new CommuniPortReceivedEventArgs(sckcp, bytes);
     OnCommuniPortReceived(e2);
 }
コード例 #4
0
ファイル: UITestLogic.cs プロジェクト: hkiaipc/c2
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void CommuniPortManager_CommuniPortReceivedEvent(object sender, CommuniPortReceivedEventArgs e)
 {
     string s = BitConverter.ToString(e.ReceivedBytes);
     Console.WriteLine( s );
 }
コード例 #5
0
ファイル: CommuniPortManager.cs プロジェクト: hkiaipc/c2
 /// <summary>
 /// 
 /// </summary>
 /// <param name="e"></param>
 protected void OnCommuniPortReceived(CommuniPortReceivedEventArgs e)
 {
     if (this.CommuniPortReceivedEvent != null)
     {
         CommuniPortReceivedEventHandler t = this.CommuniPortReceivedEvent;
         t(this, e);
     }
 }