Esempio n. 1
0
        public orderScreen()
        {
            InitializeComponent();
            handler = new JsonApiHandler();
            handler.GetToken("http://192.168.100.239:8080", true);
            coldDrinks    = handler.getLatestColdDrinks("http://192.168.100.239:8080");
            alcoholDrinks = handler.getLatestAlcoholDrinks("http://192.168.100.239:8080");

            qcoldDrink = new List <int>();
            qalcohol   = new List <int>();

            qcoldDrink.Add(Properties.DrinkQuotums.Default.cola);
            qcoldDrink.Add(Properties.DrinkQuotums.Default.cola_zero);
            qcoldDrink.Add(Properties.DrinkQuotums.Default.sprite);
            qcoldDrink.Add(Properties.DrinkQuotums.Default.fuze_green);
            qcoldDrink.Add(Properties.DrinkQuotums.Default.fuze_sparkling);
            qcoldDrink.Add(Properties.DrinkQuotums.Default.fuze_blacktea);
            qcoldDrink.Add(Properties.DrinkQuotums.Default.fanta);
            qcoldDrink.Add(Properties.DrinkQuotums.Default.cassis);
            qcoldDrink.Add(Properties.DrinkQuotums.Default.o2_geel);
            qcoldDrink.Add(Properties.DrinkQuotums.Default.o2_rood);
            qcoldDrink.Add(Properties.DrinkQuotums.Default.o2_groen);
            qcoldDrink.Add(Properties.DrinkQuotums.Default.redbull);
            qcoldDrink.Add(Properties.DrinkQuotums.Default.fristi);
            qcoldDrink.Add(Properties.DrinkQuotums.Default.chocomel);
            qcoldDrink.Add(Properties.DrinkQuotums.Default.spa_rood);

            qalcohol.Add(Properties.DrinkQuotums.Default.HertogJan);
            qalcohol.Add(Properties.DrinkQuotums.Default.Jupiler);
            qalcohol.Add(Properties.DrinkQuotums.Default.Liefmans);
            qalcohol.Add(Properties.DrinkQuotums.Default.LeffeBlond);
            qalcohol.Add(Properties.DrinkQuotums.Default.Palm);
            qalcohol.Add(Properties.DrinkQuotums.Default.Hoegaarde);
            qalcohol.Add(Properties.DrinkQuotums.Default.WitteWijn);
            qalcohol.Add(Properties.DrinkQuotums.Default.RodeWijn);
            qalcohol.Add(Properties.DrinkQuotums.Default.Bacardi);
            qalcohol.Add(Properties.DrinkQuotums.Default.BacardiRazz);
        }
 public MainWindow()
 {
     InitializeComponent();
     jsonApiHandler = new JsonApiHandler();
 }