예제 #1
0
        public void beforeEach()
        {
            enumerator = new HidEnumerator();
            var firstDevice = enumerator.Enumerate().FirstOrDefault();

            if(firstDevice != null)
            {
                devicePath = firstDevice.DevicePath;
            }
            else
            {
                devicePath = "";
            }
        }
        public BigRedButton()
        {
            var hidEnumerator = new HidEnumerator();

            device = hidEnumerator.Enumerate(VendorId, ProductId).FirstOrDefault();
        }