public void SaveSettings(Settings settings) { using (var connector = new EventSourceConnector(_terminalParams)) { connector.OpenConnector(); connector.Service.Settings = settings; connector.Service.EventLink.Post(EventSources.ManagementService, "Обновление конфигурации системы"); } }
public Settings LoadSettings() { using (var connector = new EventSourceConnector(_terminalParams)) { connector.OpenConnector(); SerialPortsEnumerator.Enumerate(connector.Service); FormOwnerEditor.OnOwnerData = connector.Service.GetOwners; return connector.Service.Settings; } }