Exemplo n.º 1
0
 private async Task GetCompleteButtonHandler(RequestDto selectedRequest, PaddedButton completeButton)
 {
     completeButton.Clicked += async (o, e) =>
     {
         ICrisisCheckInApiClient apiClient = new CrisisCheckInApiClient();
         await apiClient.CompleteRequest(selectedRequest.RequestId);
         await Navigation.PopAsync();
     };
 }
Exemplo n.º 2
0
 private PaddedButton BuildCompleteButton()
 {
     var completeButton = new PaddedButton
     {
         Text = "Complete",
         TextColor = Color.White,
         HorizontalOptions = LayoutOptions.FillAndExpand,
         BorderWidth = 1.0,
         BorderColor = Color.White,
         BackgroundColor = Constants.HtBoxRed,
         Margin = new Thickness(0, 30, 0, 0)
     };
     return completeButton;
 }