public GroupMiners(GroupedDevices deviceUUIDSet) { _miners = new List <Miner>(); _deviceNames = new SortedSet <string>(); foreach (var uuid in deviceUUIDSet) { var tmpCdev = ComputeDevice.GetDeviceWithUUID(uuid); _deviceNames.Add(tmpCdev.NameCount); if (_deviceGroupType == DeviceGroupType.NONE) { _deviceGroupType = tmpCdev.DeviceGroupType; } } // init device uuids _deviceUUIDs = deviceUUIDSet.ToArray(); // init DevicesInfoString string[] _deviceNamesCount = new string[_deviceNames.Count]; { int i = 0; foreach (var devName in _deviceNames) { _deviceNamesCount[i++] = ComputeDevice.GetEnabledDeviceNameCount(devName).ToString() + " * " + devName; } } DevicesInfoString = "{ " + string.Join(", ", _deviceNames) + " }"; }
public GroupMiners(GroupedDevices deviceUUIDSet) { _miners = new List <Miner>(); _deviceNames = new SortedSet <string>(); foreach (var uuid in deviceUUIDSet) { var tmpCdev = ComputeDeviceManager.Avaliable.GetDeviceWithUUID(uuid); _deviceNames.Add(tmpCdev.NameCount); if (_deviceGroupType == DeviceGroupType.NONE) { _deviceGroupType = tmpCdev.DeviceGroupType; } } // init device uuids _deviceUUIDs = deviceUUIDSet.ToArray(); DevicesInfoString = "{ " + string.Join(", ", _deviceNames) + " }"; }