Beispiel #1
0
        private void SaveSettings()
        {
            var monitors   = MonitorCollection.ToList();
            var subscribes = SubscribeCollection.ToList();

            ConfigHelper.Instance.SaveSettings(monitors, subscribes, ListenPort, ScanPeriod, ExceptionSavePath);
        }
Beispiel #2
0
        private void ExecuteClosedCommand()
        {
            var monitors   = MonitorCollection.ToList();
            var subscribes = SubscribeCollection.ToList();

            ConfigHelper.Instance.SaveSettings(monitors, subscribes, ListenPort, ScanPeriod);
            SynchronousSocketManager.Instance.StopListening();
            _logger.Info("主窗体卸载完毕!");
        }