private void PlcOnAmsRouterNotification(object sender, AmsRouterNotificationEventArgs e) { Debug.WriteLine($"AMS router notification: {e.State}"); if (e.State == AmsRouterState.Start) { return; } PlcConnected = false; UpdateDumpStatus("ADS router stopped", Colors.Red); }
private void TcClient_AmsRouterNotification(object sender, AmsRouterNotificationEventArgs e) { Send_TcClient_EventHandling(DateTime.Now, LogTextCategory.Info, string.Format("AMS Router notification {0}", e.State), Verbosity.Verbose); }