private void OnPetitionedContractResponseReceived(ContractPetitionResponseEventArgs e) { PetitionedContractResponseReceived?.Invoke(this, e); }
private async Task ContractsClient_PetitionedContractResponseReceived(object sender, ContractPetitionResponseEventArgs e) { try { this.OnPetitionedContractResponseReceived(e); } catch (Exception ex) { this.logService.LogException(ex); await this.uiDispatcher.DisplayAlert(AppResources.ErrorTitle, ex.Message); } }
private void Contracts_PetitionedNeuronContractResponseReceived(object sender, ContractPetitionResponseEventArgs e) { this.uiDispatcher.BeginInvokeOnMainThread(async() => { if (!e.Response || e.RequestedContract is null) { await this.uiDispatcher.DisplayAlert(AppResources.Message, AppResources.PetitionToViewContractWasDenied, AppResources.Ok); } else { await this.navigationService.GoToAsync(nameof(ViewContractPage), new ViewContractNavigationArgs(e.RequestedContract, false)); } }); }