示例#1
0
 /// <summary>
 /// Fill the list of J2534 devices with the devices that the J2534 library has discovered.
 /// </summary>
 private void FillJ2534DeviceList()
 {
     foreach (J2534.J2534Device device in J2534DeviceFinder.FindInstalledJ2534DLLs(this.logger))
     {
         this.j2534DeviceList.Items.Add(device);
     }
 }
示例#2
0
        public static Device CreateJ2534Device(string deviceType, ILogger logger)
        {
            foreach (var device in J2534DeviceFinder.FindInstalledJ2534DLLs(logger))
            {
                if (device.Name == deviceType)
                {
                    return(new J2534Device(device, logger));
                }
            }

            return(null);
        }