Example #1
0
        /// <summary>
        /// 사용안함
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        static void Msr_OnOpened(object sender, EventArgs e)
        {
            Msr.OnOpened -= new EventHandler(Msr_OnOpened);
            s_initializeHandler(POSDeviceTypes.Msr, true);

            s_initializeHandler(POSDeviceTypes.Printer, false);
            Printer           = new POSPrinter();
            Printer.OnOpened += new EventHandler(Printer_OnOpened);
            Printer.Open();
        }
Example #2
0
        /// <summary>
        /// Initialize w/o keyboard
        /// </summary>
        public static void Initialize()
        {
            CashDrawer = new POSCashDrawer();
            CashDrawer.Open();

            LineDisplay = new POSLineDisplay();
            LineDisplay.Open();

            Printer = new POSPrinter();
            Printer.Open();

            SignPad = new POSSignPad();
        }
Example #3
0
        static void LineDisplay_OnOpened(object sender, EventArgs e)
        {
            LineDisplay.OnOpened -= new EventHandler(LineDisplay_OnOpened);
            s_initializeHandler(POSDeviceTypes.LineDisplay, true);

            // 주석처리 Msr 비활성화 05.24
            s_initializeHandler(POSDeviceTypes.Msr, true);
            //Msr = new POSMsr();
            //Msr.OnOpened += new EventHandler(Msr_OnOpened);
            //Msr.Open();

            s_initializeHandler(POSDeviceTypes.Printer, false);
            Printer           = new POSPrinter();
            Printer.OnOpened += new EventHandler(Printer_OnOpened);
            Printer.Open();
        }