Ejemplo n.º 1
0
 public static void OnChanged()
 {
     if (DevDeviceList.Changed != null)
     {
         DevDeviceList.Changed();
     }
 }
Ejemplo n.º 2
0
 public static void OnChanged()
 {
     if (DevDeviceList.Changed == null)
     {
         return;
     }
     DevDeviceList.Changed();
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 5
0
 internal static void Update(string target, DevDevice[] devices)
 {
     DevDeviceList.UpdateInternal(target, devices);
     DevDeviceList.OnChanged();
 }