Example #1
0
        public Cart(Service service, Customer customer, Basket basket)
        {
            this.service = service;
            this.customer = customer;
            this.basket = basket;

            addShoppingList(basket);
        }
Example #2
0
        public PDA()
        {
            ConfigurationSettings.LoadConfig();
            gui = new GUI(this);

            RFIDReader reader = new RFIDReader();
            String url = ConfigurationSettings.AppSettings["SERVICE_URL"];
            service = new Service(url);

            reader.start();
            reader.OnTagRead += new RFIDReader.TagDelegate(reader_OnTagRead);
            Application.Run(gui);
        }