Esempio n. 1
0
        public static DeviceScreenBase CreateDeviceScreen(PosCommon posCommon, string soName, MainForm mainForm)
        {
            DeviceScreenBase screen =null;
            if (posCommon is Msr)
                screen = new MsrScreen();
            else if (posCommon is Scanner)
                screen = new ScannerScreen();
            else if (posCommon is CheckScanner)
                screen = new CheckScannerScreen();
            else if (posCommon is PosPrinter)
                screen = new PosPrinterScreen();
            else if (posCommon is Scale)
                screen = new ScaleScreen();
            else if (posCommon is Micr)
                screen = new MicrScreen();
            else if (posCommon is LineDisplay)
                screen = new LineDisplayScreen();
            else if (posCommon is PinPad)
                screen = new PinPadScreen();
            else if (posCommon is CashDrawer)
                screen = new CashDrawerScreen();
            else if (posCommon is PosKeyboard)
                screen = new PosKeyboardScreen();
            else if (posCommon is CoinDispenser)
                screen = new CoinDispenserScreen();
            else if (posCommon is Keylock)
                screen = new KeylockScreen();
            else if (posCommon is SignatureCapture)
                screen = new SignatureCaptureScreen();
            else if (posCommon is SmartCardRW)
                screen = new SmartCardRWScreen();
            else if (posCommon is BumpBar)
                screen = new BumpBarScreen();
            else if (posCommon is Biometrics)
                screen = new BiometricsScreen();
            else if (posCommon is RFIDScanner)
                screen = new RFIDScannerScreen();


            if (screen != null)
            {
                screen._mainForm = mainForm;
                screen._posCommon = posCommon;
                screen._soName = soName;
            }

            return screen;
        }
Esempio n. 2
0
        public static DeviceScreenBase CreateDeviceScreen(PosCommon posCommon, string soName, MainForm mainForm)
        {
            DeviceScreenBase screen = null;

            if (posCommon is Msr)
            {
                screen = new MsrScreen();
            }
            else if (posCommon is Scanner)
            {
                screen = new ScannerScreen();
            }
            else if (posCommon is CheckScanner)
            {
                screen = new CheckScannerScreen();
            }
            else if (posCommon is PosPrinter)
            {
                screen = new PosPrinterScreen();
            }
            else if (posCommon is Scale)
            {
                screen = new ScaleScreen();
            }
            else if (posCommon is Micr)
            {
                screen = new MicrScreen();
            }
            else if (posCommon is LineDisplay)
            {
                screen = new LineDisplayScreen();
            }
            else if (posCommon is PinPad)
            {
                screen = new PinPadScreen();
            }
            else if (posCommon is CashDrawer)
            {
                screen = new CashDrawerScreen();
            }
            else if (posCommon is PosKeyboard)
            {
                screen = new PosKeyboardScreen();
            }
            else if (posCommon is CoinDispenser)
            {
                screen = new CoinDispenserScreen();
            }
            else if (posCommon is Keylock)
            {
                screen = new KeylockScreen();
            }
            else if (posCommon is SignatureCapture)
            {
                screen = new SignatureCaptureScreen();
            }
            else if (posCommon is SmartCardRW)
            {
                screen = new SmartCardRWScreen();
            }
            else if (posCommon is BumpBar)
            {
                screen = new BumpBarScreen();
            }
            else if (posCommon is Biometrics)
            {
                screen = new BiometricsScreen();
            }
            else if (posCommon is RFIDScanner)
            {
                screen = new RFIDScannerScreen();
            }


            if (screen != null)
            {
                screen._mainForm  = mainForm;
                screen._posCommon = posCommon;
                screen._soName    = soName;
            }

            return(screen);
        }