private async void SubmitOrderButton_Click()

in src/ModernTacoShop/AndroidApp/AndroidApp.FrontEnd/MainActivity.cs [254:278]


        private async void SubmitOrderButton_Click(object sender, EventArgs e)
        {
            await TacoOrder.SubmitOrder();

            // When tracking the order status, show the order status layout.
            var orderFormLayout = FindViewById<ViewGroup>(Resource.Id.orderFormLayout);
            var orderStatusLayout = FindViewById<ViewGroup>(Resource.Id.orderStatusLayout);

            orderFormLayout.Visibility = ViewStates.Gone;
            orderStatusLayout.Visibility = ViewStates.Visible;

            // Set up a 'dot' feature to indicate the order's location on the map.
            var orderLocationFeature = new Feature()
            {
                Styles = new List<IStyle> {
                    new SymbolStyle { Fill = new Brush(Color.Blue), SymbolScale = 0.5f },
                    new SymbolStyle { Fill = new Brush(Color.White), SymbolScale = 0.3f }
                }
            };
            OrderPositionLayer.Clear();
            OrderPositionLayer.Add(orderLocationFeature);

            // Stream the order status updates.
            await TacoOrder.StreamOrderStatus(DisplayCurrentOrderStatus);
        }