public static List <GPSDevice> GetSupportedGPSDevices() { var supportedGPSDevices = new List <GPSDevice>(); // Garmin Forerunner supportedGPSDevices.Add(new GPSDevice(new GarminForerunnerUSBImporter())); // GlobalSat GH-615M supportedGPSDevices.Add(new GPSDevice(new GlobalSatGH615MImporter())); // JJ-Connect Registrator SE supportedGPSDevices.Add(new GPSDevice(new JJConnectRegistratorSEImporter())); // Garmin ANT Agent GarminANTAgentImporter antImporter = new GarminANTAgentImporter(); antImporter.Path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\GARMIN\Devices\"; GPSDevice antDevice = new GPSDevice(antImporter); supportedGPSDevices.Add(antDevice); // Polar ProTrainer var polarProTrainerImporter = new PolarProTrainerImporter(); polarProTrainerImporter.Paths = new List <string> { GetProgramFilesPath() + @"\Polar\Polar ProTrainer\", Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\VirtualStore\Program Files\Polar\Polar ProTrainer\", }; GPSDevice polarProTrainerDevice = new GPSDevice(polarProTrainerImporter); supportedGPSDevices.Add(polarProTrainerDevice); return(supportedGPSDevices); }
public static List<GPSDevice> GetSupportedGPSDevices() { var supportedGPSDevices = new List<GPSDevice>(); // Garmin Forerunner supportedGPSDevices.Add(new GPSDevice(new GarminForerunnerUSBImporter())); // GlobalSat GH-615M supportedGPSDevices.Add(new GPSDevice(new GlobalSatGH615MImporter())); // JJ-Connect Registrator SE supportedGPSDevices.Add(new GPSDevice(new JJConnectRegistratorSEImporter())); // Garmin ANT Agent GarminANTAgentImporter antImporter = new GarminANTAgentImporter(); antImporter.Path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\GARMIN\Devices\"; GPSDevice antDevice = new GPSDevice(antImporter); supportedGPSDevices.Add(antDevice); // Polar ProTrainer var polarProTrainerImporter = new PolarProTrainerImporter(); polarProTrainerImporter.Paths = new List<string> { GetProgramFilesPath() + @"\Polar\Polar ProTrainer\", Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\VirtualStore\Program Files\Polar\Polar ProTrainer\", }; GPSDevice polarProTrainerDevice = new GPSDevice(polarProTrainerImporter); supportedGPSDevices.Add(polarProTrainerDevice); return supportedGPSDevices; }