Example #1
0
 private void Clienter_Notify(PModbusStatus status, string message)
 {
     if (status != PModbusStatus.Normal)
     {
         Debug.WriteLine("=================Status and Message:");
         Debug.WriteLine(">>" + status);
         Debug.WriteLine(">>" + message);
         this.Invoke(new Action(() =>
         {
             toolStripStatusLabel1.Text = message;
             toolStripStatusLabel2.Text = status.ToString();
         }));
     }
 }
Example #2
0
 public StatusEventArgs(PModbusStatus status)
 {
     this.PModbusStatus = status;
 }