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(); })); } }
public StatusEventArgs(PModbusStatus status) { this.PModbusStatus = status; }