private async void NextButton_Clicked(object sender, EventArgs e)
        {
            if (viewModel.selectVehicleId == null)
            {
                return;
            }
            using (var scope = new ActivityIndicatorScope(activityIndicator, activityIndicatorPanel, true))
            {
                await viewModel.CheckCreateClaimAsync(this);

                var partyView = new PartyInfoView(viewModel.claimViewModel, ClaimImageTypeModel.LicensePlate);
                NavigationPage.SetHasBackButton(partyView, false);
                await Navigation.PushAsync(partyView, true);
            }
        }
Пример #2
0
        private async void NextButton_Clicked(object sender, EventArgs e)
        {
            if (this.fileName.Contains("{Correlation Id}"))
            {
                return;
            }

            if (type == ClaimImageTypeModel.LicensePlate ||
                type == ClaimImageTypeModel.InsuranceCard)
            {
                var nextPage = new PartyInfoView(claimViewModel, type + 1);
                NavigationPage.SetHasBackButton(nextPage, false);
                await Navigation.PushAsync(nextPage, true);
            }
            else if (type == ClaimImageTypeModel.DriversLicense)
            {
                var nextPage = new PartyContactView(claimViewModel);
                NavigationPage.SetHasBackButton(nextPage, false);
                await Navigation.PushAsync(nextPage, true);
            }
        }