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