Пример #1
0
 public void LoadTemplates()
 {
     foreach (WakeOnLanInfo template in SettingsController.GetWakeOnLanTemplates())
     {
         WakeOnLanTemplates.Add(template);
     }
 }
Пример #2
0
        public void AddTemplateAction()
        {
            WakeOnLanInfo template = new WakeOnLanInfo
            {
                MAC       = AddTemplateMACAddress,
                Broadcast = AddTemplateBroadcast,
                Hostname  = AddTemplateHostname,
                Port      = AddTemplatePort,
            };

            WakeOnLanTemplates.Add(template);
        }