本文整理汇总了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(); }));
}
示例2: error
private void error(Object sender, SerialErrorReceivedEventArgs e)
{
comErrorsReceived++;
log("Serial com error:" + e.ToString(), false, 2);
if (comErrorsReceived == 10)
close();
}
示例3: error
private void error(Object sender, SerialErrorReceivedEventArgs e)
{
log("Serial com error:" + e.ToString(), false, 2);
}
示例4: _errorHandler
private void _errorHandler(object sender, SerialErrorReceivedEventArgs e)
{
this.WriteApp(string.Format(clsGlobal.MyCulture, "Serial comm error {0}", new object[] { e.ToString() }));
}
示例5: HanldeErrorReceived
private void HanldeErrorReceived(object sender, SerialErrorReceivedEventArgs e)
{
Console.WriteLine("ZWaveLib ERROR: " + e.EventType.ToString() + " => " + e.ToString());
}
示例6: serialPort1_ErrorReceived
private void serialPort1_ErrorReceived(object sender, SerialErrorReceivedEventArgs e)
{
label1.Text = e.ToString();
}
示例7: csaPort_ErrorReceived
void csaPort_ErrorReceived(object sender, SerialErrorReceivedEventArgs e)
{
Tracer.Error("csaPort_ErrorReceived: " + e.ToString());
}
示例8: OpError
public void OpError(object sender, SerialErrorReceivedEventArgs e)
{
Console.WriteLine("Exception Caught : " + e.ToString());
}
示例9: comm_ErrorReceived
void comm_ErrorReceived(object sender, SerialErrorReceivedEventArgs e)
{
Trace.WriteLine(sender.ToString()+" - "+e.ToString());
}
示例10: serialELM_ErrorReceived
private void serialELM_ErrorReceived(object sender, SerialErrorReceivedEventArgs e)
{
rxtxTB.Text = e.ToString();
}
示例11: sPort_ErrorReceived
private void sPort_ErrorReceived(object sender, SerialErrorReceivedEventArgs e)
{
this.BeginInvoke(new MethodInvoker(delegate()
{ rtbDataIn.AppendText(" *** ERROR RECEIVED " + e.ToString() + " ***\r\n"); }));
}
示例12: _module_ErrorReceived
void _module_ErrorReceived(object sender, SerialErrorReceivedEventArgs e)
{
Debug.Print(e.ToString());
}
示例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();
}
示例14: port_ErrorReceived
public virtual void port_ErrorReceived(object sender, SerialErrorReceivedEventArgs e)
{
errorCounter++;
Tracer.Error("ControllerRQAX2850: port_ErrorReceived: " + e.ToString());
}
示例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())));
}
}