예제 #1
0
		public static IDeviceEmulatorManagerVMID FindDevice(IDeviceEmulatorManager manager, string id)
		{
			try
			{
				while (true)
				{
					IDeviceEmulatorManagerVMID device = FindDevice(manager.EnumerateSDKs(), id);
					if (device != null) return device;
					manager.MoveNext();
				}
			}
			catch (COMException)
			{
			}

			return null;
		}
예제 #2
0
        public static IDeviceEmulatorManagerVMID FindDevice(IDeviceEmulatorManager manager, string id)
        {
            try
            {
                while (true)
                {
                    IDeviceEmulatorManagerVMID device = FindDevice(manager.EnumerateSDKs(), id);
                    if (device != null)
                    {
                        return(device);
                    }
                    manager.MoveNext();
                }
            }
            catch (COMException)
            {
            }

            return(null);
        }