private void SaveSettings() { var monitors = MonitorCollection.ToList(); var subscribes = SubscribeCollection.ToList(); ConfigHelper.Instance.SaveSettings(monitors, subscribes, ListenPort, ScanPeriod, ExceptionSavePath); }
private void ExecuteClosedCommand() { var monitors = MonitorCollection.ToList(); var subscribes = SubscribeCollection.ToList(); ConfigHelper.Instance.SaveSettings(monitors, subscribes, ListenPort, ScanPeriod); SynchronousSocketManager.Instance.StopListening(); _logger.Info("主窗体卸载完毕!"); }