public static bool FindDevice(string deviceId, out DevDevice device) { foreach (DevDevice device2 in GetDevices()) { if (device2.id == deviceId) { device = device2; return true; } } device = new DevDevice(); return false; }
public static bool FindDevice(string deviceId, out DevDevice device) { foreach (DevDevice device1 in DevDeviceList.GetDevices()) { if (device1.id == deviceId) { device = device1; return(true); } } device = new DevDevice(); return(false); }
public static bool FindDevice(string deviceId, out DevDevice device) { foreach (var d in GetDevices()) { if (d.id == deviceId) { device = d; return(true); } } device = new DevDevice(); return(false); }
public static bool FindDevice(string deviceId, out DevDevice device) { DevDevice[] devices = DevDeviceList.GetDevices(); for (int i = 0; i < devices.Length; i++) { DevDevice devDevice = devices[i]; if (devDevice.id == deviceId) { device = devDevice; return(true); } } device = default(DevDevice); return(false); }
public static bool FindDevice(string deviceId, out DevDevice device) { DevDevice[] devices = DevDeviceList.GetDevices(); for (int i = 0; i < devices.Length; i++) { DevDevice devDevice = devices[i]; if (devDevice.id == deviceId) { device = devDevice; return true; } } device = default(DevDevice); return false; }
private static int GetIndexById(DevDevice[] elements, string id, int defaultIndex) { for (int i = 0; i < elements.Length; i++) { if (elements[i].id == id) { return i; } } return defaultIndex; }
private static int GetIndexById(DevDevice[] elements, string id, int defaultIndex) { for (int index = 0; index < elements.Length; ++index) { if (elements[index].id == id) return index; } return defaultIndex; }
internal static extern void UpdateInternal(string target, DevDevice[] devices);
internal static void Update(string target, DevDevice[] devices) { DevDeviceList.UpdateInternal(target, devices); DevDeviceList.OnChanged(); }