public MainScreen()
        {
            this.InitializeComponent();
            textBlock1.Text = "Signed in as: " + Globals.currentUser;
            SalesOrder newSalesOrder = new SalesOrder();

            salesOrderList = newSalesOrder.loadSalesOrders();
            RetrieveItems getStockList = new RetrieveItems();

            stockItemsList = getStockList.getList();
        }
        private void GenerateReport(int quantity)
        {
            textbox_listitems.Text    = "";
            textbox_listquantity.Text = "";

            RetrieveItems     stock      = new RetrieveItems();
            List <StockItems> stockitems = stock.getList();

            foreach (StockItems so in stockitems)
            {
                if (so.item_stock <= quantity)
                {
                    textbox_listitems.Text    += so.item_name + "\n";
                    textbox_listquantity.Text += so.item_stock + "\n";
                }
            }
        }
        public CreateSalesOrder()
        {
            this.InitializeComponent();
            textBlock1.Text = "Signed in as: " + Globals.currentUser;
            int id = salesOrder.GetCurrentId();

            current_so.id   = id.ToString();
            textbox_id.Text = id.ToString();
            dropdown_item.Items.Add("");

            LoginParsing loginparsing = new LoginParsing();

            _stockList = getitems.getList();
            foreach (StockItems i in _stockList)
            {
                dropdown_item.Items.Add(i.item_name);
            }
        }