Example #1
0
        public Light CreateLight()
        {
            if (!_controller.OpenDevice())
            {
                throw new DeviceNotConnectedException();
            }

            return(new Light(_controller));
        }