void Startup() { List<string> configs = helper.locateOpenVPNManagerConfigs(true); foreach (String config in configs) { OpenVPNservice openVPNservice = new OpenVPNservice(this, config); openVPNservices.Add(openVPNservice); openVPNservice.Start(); } ServiceHelper.MinimizeFootprint(); Timer timerReference = new Timer( delegate(object state) { ServiceHelper.MinimizeFootprint(); timerReference = null; }, null, 5000, 0); }
void Startup() { List <string> configs = helper.locateOpenVPNManagerConfigs(true); foreach (String config in configs) { OpenVPNservice openVPNservice = new OpenVPNservice(this, config); openVPNservices.Add(openVPNservice); openVPNservice.Start(); } ServiceHelper.MinimizeFootprint(); Timer timerReference = new Timer( delegate(object state) { ServiceHelper.MinimizeFootprint(); timerReference = null; }, null, 5000, 0); }