private Dictionary <int, InputReaderDevice> InitReaders() { Dictionary <int, InputReaderDevice> result = new Dictionary <int, InputReaderDevice>(); try { if (GlobalFramework.LoggedTerminal.BarcodeReader != null) { _barCodeReaderList = FrameworkUtils.CommaDelimitedStringToIntList(GlobalFramework.LoggedTerminal.BarcodeReader.ReaderSizes); for (int i = 0; i < _barCodeReaderList.Count; i++) { result.Add(Convert.ToInt16(_barCodeReaderList[i]), InputReaderDevice.BarCodeReader); } } if (GlobalFramework.LoggedTerminal.CardReader != null) { _cardReaderList = FrameworkUtils.CommaDelimitedStringToIntList(GlobalFramework.LoggedTerminal.CardReader.ReaderSizes); for (int i = 0; i < _cardReaderList.Count; i++) { //Check if BarCodeReader is Using same Value Size, if So Skip if (!result.ContainsKey(Convert.ToInt16(_cardReaderList[i]))) { result.Add(Convert.ToInt16(_cardReaderList[i]), InputReaderDevice.CardReader); } } } } catch (Exception ex) { _log.Error(ex.Message, ex); } return(result); }