public void Run() { var ad = new RX2164Adapter(); if (!ad.OpenDevice()) { throw new Exception("unable to open"); } ad.CommandReceived += Ad_CommandReceived; while (true) { Thread.Sleep(100); } }