当前位置: 首页>>代码示例>>C#>>正文


C# SerialErrorReceivedEventArgs.ToString方法代码示例

本文整理汇总了C#中System.IO.Ports.SerialErrorReceivedEventArgs.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# SerialErrorReceivedEventArgs.ToString方法的具体用法?C# SerialErrorReceivedEventArgs.ToString怎么用?C# SerialErrorReceivedEventArgs.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.IO.Ports.SerialErrorReceivedEventArgs的用法示例。


在下文中一共展示了SerialErrorReceivedEventArgs.ToString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: comport_ErrorReceived

 void comport_ErrorReceived(object sender, SerialErrorReceivedEventArgs e)
 {
     txtReceive.Invoke(new EventHandler(delegate { txtReceive.Text += e.ToString(); }));
 }
开发者ID:andrejpanic,项目名称:win-mobile-code,代码行数:4,代码来源:Form1.cs

示例2: error

 private void error(Object sender, SerialErrorReceivedEventArgs e)
 {
     comErrorsReceived++;
     log("Serial com error:" + e.ToString(), false, 2);
     if (comErrorsReceived == 10)
         close();
 }
开发者ID:CNCBASHER,项目名称:Repetier-Host,代码行数:7,代码来源:PrinterConnection.cs

示例3: error

 private void error(Object sender, SerialErrorReceivedEventArgs e)
 {
     log("Serial com error:" + e.ToString(), false, 2);
 }
开发者ID:InlineTwin,项目名称:Repetier-Host,代码行数:4,代码来源:PrinterConnection.cs

示例4: _errorHandler

 private void _errorHandler(object sender, SerialErrorReceivedEventArgs e)
 {
     this.WriteApp(string.Format(clsGlobal.MyCulture, "Serial comm error {0}", new object[] { e.ToString() }));
 }
开发者ID:facchinm,项目名称:SiRFLive,代码行数:4,代码来源:CommunicationManager.cs

示例5: HanldeErrorReceived

 private void HanldeErrorReceived(object sender, SerialErrorReceivedEventArgs e)
 {
     Console.WriteLine("ZWaveLib ERROR: " + e.EventType.ToString() + " => " + e.ToString());
 }
开发者ID:rwxr-xr-x,项目名称:HomeGenie,代码行数:4,代码来源:ZWavePort.cs

示例6: serialPort1_ErrorReceived

 private void serialPort1_ErrorReceived(object sender, SerialErrorReceivedEventArgs e)
 {
     label1.Text = e.ToString();
 }
开发者ID:shakil0304003,项目名称:Mobile-SMS,代码行数:4,代码来源:Receive.cs

示例7: csaPort_ErrorReceived

 void csaPort_ErrorReceived(object sender, SerialErrorReceivedEventArgs e)
 {
     Tracer.Error("csaPort_ErrorReceived: " + e.ToString());
 }
开发者ID:slgrobotics,项目名称:TrackRoamer,代码行数:4,代码来源:ControllerTestForm.cs

示例8: OpError

 public void OpError(object sender, SerialErrorReceivedEventArgs e)
 {
     Console.WriteLine("Exception Caught : " + e.ToString());
 }
开发者ID:CubeFramework,项目名称:Platform,代码行数:4,代码来源:SymbolDS457.cs

示例9: comm_ErrorReceived

 void comm_ErrorReceived(object sender, SerialErrorReceivedEventArgs e)
 {
     Trace.WriteLine(sender.ToString()+" - "+e.ToString());
 }
开发者ID:foretheWind,项目名称:MiniQ,代码行数:4,代码来源:frm_main.cs

示例10: serialELM_ErrorReceived

 private void serialELM_ErrorReceived(object sender, SerialErrorReceivedEventArgs e)
 {
     rxtxTB.Text = e.ToString();
 }
开发者ID:pacificIT,项目名称:OBD-II-ELM-Serial,代码行数:4,代码来源:MainForm.cs

示例11: sPort_ErrorReceived

 private void sPort_ErrorReceived(object sender, SerialErrorReceivedEventArgs e)
 {
     this.BeginInvoke(new MethodInvoker(delegate()
     { rtbDataIn.AppendText("  ***  ERROR RECEIVED " + e.ToString() + "  ***\r\n"); }));
 }
开发者ID:atlasuah,项目名称:mapper,代码行数:5,代码来源:MapperForm.cs

示例12: _module_ErrorReceived

 void _module_ErrorReceived(object sender, SerialErrorReceivedEventArgs e)
 {
     Debug.Print(e.ToString());
 }
开发者ID:marinehero,项目名称:NETMF-Utils,代码行数:4,代码来源:BtModuleHC05.cs

示例13: Com_rru_ErrorReceived

        //error data receive
        private void Com_rru_ErrorReceived(object sender, SerialErrorReceivedEventArgs e)
        {
            WriteTraceText(sender.ToString() + " : " + e.ToString());

            this._COM_RRU.DiscardInBuffer();
            this._COM_RRU.DiscardOutBuffer();
        }
开发者ID:mahabara,项目名称:RTT,代码行数:8,代码来源:MainForm.cs

示例14: port_ErrorReceived

 public virtual void port_ErrorReceived(object sender, SerialErrorReceivedEventArgs e)
 {
     errorCounter++;
     Tracer.Error("ControllerRQAX2850: port_ErrorReceived: " + e.ToString());
 }
开发者ID:slgrobotics,项目名称:TrackRoamer,代码行数:5,代码来源:ControllerRQAX2850.cs

示例15: UartErrorReceived

 /// <summary>
 /// Called when a serial communication error occurs.
 /// </summary>
 private void UartErrorReceived(object sender, SerialErrorReceivedEventArgs e)
 {
     // TODO
     if (this.ObdErrorEvent != null)
     {
         this.ObdErrorEvent(this, new ErrorEventArgs(new Exception(e.ToString())));
     }
 }
开发者ID:orlin369,项目名称:ELM327_Driver,代码行数:11,代码来源:Driver.cs


注:本文中的System.IO.Ports.SerialErrorReceivedEventArgs.ToString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。