Exemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();
            try
            {
                myRfidReader      = new RFID();
                myRfidReader.Tag += new TagEventHandler(RfidReaderTag);
            }
            catch (PhidgetException e)
            {
                MessageBox.Show(e.Message);
            }

            ReadChip();
            bar        = new BarApp();
            connection = new DataHelper();
            order      = new Order();
            connection.connect();
            bar.GetAllDrinks();
            bar.GetAllSnacks();
            getAllSnackFromDb();
            getAllDrinksFromDb();
            toPay = false;
            if (bar.CheckEmpty() == 0)
            {
                bar.InitializeOrder(order, 777777, 0);
            }
        }
Exemplo n.º 2
0
 public Form2()
 {
     InitializeComponent();
     try
     {
         myRfidReader      = new RFID();
         myRfidReader.Tag += new TagEventHandler(RfidReaderTag);
     }
     catch (PhidgetException e)
     {
         MessageBox.Show(e.Message);
     }
     ReadChip();
     bar        = new BarApp();
     connection = new DataHelper();
     order      = new Order();
     connection.connect();
 }