private void initializeGPS() { // initializing objects gpsConnect = new EventHandler <DeviceEventArgs>(this.OnGPSConnect); fixAcquired = new EventHandler <DeviceEventArgs>(this.OnFixAcquired); fixLost = new EventHandler <DeviceEventArgs>(this.OnFixLost); positionMessage = new EventHandler <PositionEventArgs>(this.OnGPSMessage); gpsManager = new GPSHandler(log, gpsConnect, fixAcquired, fixLost, positionMessage); this.gpsLabel.Text = "Searching for GPS"; this.statusLabel.Text = "Searching for GPS"; sender = new HTTPSender(gpsManager); sender.Sent += this.OnSent; if (PinPointConfig.AutoEnable) { this.enableButt_Click(null, null); } else { this.disableButt_Click(null, null); } }
public HTTPSender(GPSHandler _manager) { // config = _config; gpsManager = _manager; this.sendTimer = new Timer(); }