/* * My Orders List * MyOrdersList -> Show() : Hide() * */ async Task MyOrdersList() { breadscribe.SetFirstPage(PageType.MyOrderList); pagetype = PageType.MyOrderList; backButton.IsVisible = true; scroll.Margin = new Thickness(10, 10, 10, 10); await order.GetAllOrders(); if (server.ServerResult) { bottomButton.IsVisible = false; bottomButton.IsEnabled = false; toolbar.IsVisible = true; toolbar.Opacity = 0; Label title = new Label(); title.Text = "Мои заказы"; title.FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Label)); title.TextColor = Color.FromHex("#66C7F4"); title.Margin = new Thickness(10, 10, 10, 10); title.Opacity = 0; content.Children.Add(title); ButtonUI button = new ButtonUI(); button.SetCaption("Новый заказ"); button.Opacity = 0; content.Children.Add(button); List <Order> orders = order.getListOrders(); for (int i = 0; i < orders.Count; i++) { OrderDescriptionUI orderDiscription = new OrderDescriptionUI(); orderDiscription.SetData(orders[i]); orderDiscription.Opacity = 0; content.Children.Add(orderDiscription); } await ShowTask(); } else { Error(); } }