Example #1
0
        public void update()
        {
            orderControls.Clear();
            panel.Controls.Clear();

            List <OrderItem> orderItems = dbWrapper.getTodayOrderItems();

            orderItems.Reverse();
            foreach (OrderItem item in orderItems)
            {
                addNewOrder(item);
            }
        }
Example #2
0
        public SellsBookControl()
        {
            InitializeComponent();
            panel.AutoScroll = false;
            panel.HorizontalScroll.Enabled = false;
            panel.HorizontalScroll.Visible = false;
            panel.HorizontalScroll.Maximum = 0;
            panel.AutoScroll = true;
            dbWrapper        = new DataBaseWrapper();
            orderControls    = new List <HistoryOrderControl>();

            List <OrderItem> orderItems = dbWrapper.getTodayOrderItems();

            foreach (OrderItem item in orderItems)
            {
                addNewOrder(item);
            }
        }