コード例 #1
0
 public TinyFanGroup(ISettings settings)
 {
     // TODO: Complete member initialization
     this.settings = settings;
     USBInterface.HIDInterface.interfaceDetails[] allDevices = this.getDevicesDetails();
     if (allDevices.Length == 0)
     {
         report.Append("Didn't find TinyFan USB device.");
         return;
     }
     for (int i = 0; i < allDevices.Length; i++)
     {
         USBInterface.HIDInterface.interfaceDetails deviceInfos = allDevices[i];
         report.AppendLine("Find one device. It's path is:" + deviceInfos.devicePath);
         TinyFan tinyFan = new TinyFan("tinyfan", settings, deviceInfos);
         this.hardware.Add(tinyFan);
     }
 }
コード例 #2
0
ファイル: TinyFanGroup.cs プロジェクト: fkpwolf/tinyFan
 public TinyFanGroup(ISettings settings)
 {
     // TODO: Complete member initialization
     this.settings = settings;
     USBInterface.HIDInterface.interfaceDetails[] allDevices = this.getDevicesDetails();
     if (allDevices.Length == 0)
     {
         report.Append("Didn't find TinyFan USB device.");
         return;
     }
     for (int i = 0; i < allDevices.Length; i++)
     {
         USBInterface.HIDInterface.interfaceDetails deviceInfos = allDevices[i];
         report.AppendLine("Find one device. It's path is:" + deviceInfos.devicePath);
         TinyFan tinyFan = new TinyFan("tinyfan", settings, deviceInfos);
         this.hardware.Add(tinyFan);
     }
 }