public void Do_order_and_confirm(string _remark) { OrderDetailButton.TouchNoScroll(); InsertButton.TouchNoScroll(); ProductListTable.Input_to_cell_of_first_row_by_index(COL_CASE, "1"); SubmitButton.TouchNoScroll(); DoneButton.TouchNoScroll(); DeliveryNote = _remark; SubmitButton.TouchNoScroll(); }
// [1] Display Products // This method will also ask you select an item for purchase public void DisplayProducts() { CurrentlyAtWorkshop = false; Inventory inventory = new Inventory(CurrentLocation); List <Product> products = new List <Product>(); foreach (Product p in inventory.Products) { if (p.StockLevel > 0) { products.Add(p); } } Console.Clear(); // if no products in the inventory, print this message, then exit if (products.Count() == 0) { Console.WriteLine("============================================================="); Console.WriteLine(" There are no items to buy or all products are out stock "); Console.WriteLine("============================================================="); Console.WriteLine(); return; } // display product list // instance vars from this view will be used by other methods ProductListPage = new ProductListTable(products); DisplayOrders(); AssignAvailableFunctions(); DisplayAvailableFunctions(); SelectItem(products); ProcessSelectedFunction(); }