Beispiel #1
0
        public void displayOrders()
        {
            int y = 0;

            orders = conn.getAllOrders();
            int i;

            for (i = 0; i < orders.Count; i++)
            {
                adminViewOrder avo = new adminViewOrder(orders[i]);
                avo.Location = new Point(0, y);
                y           += 87;
                panel1.Controls.Add(avo);
            }
        }
Beispiel #2
0
        public void getOrders()
        {
            int y = 0;

            orders = conn.getUserOrders(u.getUid());
            int i;

            for (i = 0; i < orders.Count; i++)
            {
                adminViewOrder avo = new adminViewOrder(orders[i], u.isAdmin);
                avo.Location = new Point(0, y);
                y           += 87;
                orderP.Controls.Add(avo);
            }
        }