public static void SetDrawerActive(int drawerId) { if (CurrentActiveRfidDrawer == drawerId) { return; } if ((Device != null) && (Device.IsConnected)) { _CurrentActiveRfidDrawer = drawerId; if (DrawerInventoryData[_CurrentActiveRfidDrawer] == null) { DrawerInventoryData[_CurrentActiveRfidDrawer] = new ReaderData(); } Device.ReaderData = DrawerInventoryData[_CurrentActiveRfidDrawer]; Device.StopField(); Device.SendSwitchCommand(true, (byte)_CurrentActiveRfidDrawer, false); } }