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