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(); }; }
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); }