Esempio n. 1
0
 static void handleStack(object sender, EventArgs e)
 {
     Console.WriteLine("Evento : Stack");
     if (billAccept.DocType == DocumentType.Bill)
     {
         Console.WriteLine("Estado : {0}", billAccept.DeviceState);
         MPOST.Bill bills = billAccept.Bill;
         //Console.WriteLine("Bill: {0}", billAccept.Bill);
         Console.WriteLine("Depositado : ${0}.00", bills.Value);
     }
 }
Esempio n. 2
0
 static void handleEscrow(object sender, EventArgs e)
 {
     Console.WriteLine("Evento : ESCROW");
     Console.WriteLine("billAccept.DocType : {0}", billAccept.DocType);
     if (billAccept.DocType == DocumentType.Bill)
     {
         MPOST.Bill bills = billAccept.Bill;
         Console.WriteLine("Bill: {0}", billAccept.Bill);
         Console.WriteLine(bills.Value);
     }
 }
Esempio n. 3
0
        //Despues de validar su funcionamiento con el metod getCashDeposite se elimina esta funcion
        //public double getDepositeBill()
        //{
        //    double bill = 0;
        //    if (billAcceptor.DocType == DocumentType.Bill)
        //    {
        //        MPOST.Bill bills = billAcceptor.Bill;
        //        bill = bills.Value;
        //    }
        //    return bill;
        //}

        public override byte[] getCashDesposite(int count)
        {
            byte[] bill = new byte[1];

            if (billAcceptor.DocType == DocumentType.Bill)
            {
                MPOST.Bill bills = billAcceptor.Bill;
                Console.WriteLine(bills.Value);
                bill[0] = (byte)bills.Value;
            }
            return(bill);
        }