private void Start(string kitchenorbar) { if (kitchenorbar == "kitchen") { kitchenlbl.Show(); DisplayKitchenOrders(); } if (kitchenorbar == "bar") { Barlbl.Show(); DisplayBarOrders(); } }
private void AutoRefresh(string kitchenorbar) // Extra method for refreshing the list every minute and chooses between Kitchen or bar view { if (kitchenorbar == "kitchen") { kitchenlbl.Show(); DisplayKitchenOrders(); } if (kitchenorbar == "bar") { Barlbl.Show(); DisplayBarOrders(); } }