async private void OnJoinAppClickedAsync(object sender, EventArgs e) { IsServiceActive = true; try { // The invitations appear under each app and also under // the user for all apps. Here we query invitations for // the user ContactViewModel contactsModel = new ContactViewModel(BaseViewModels.Platform, null); contactsModel.EditInvitation.OwnedBy = BaseViewModels.Platform.Permit.Owner; await contactsModel.QueryInvitationsAsync(); await MainView.StackViewSkipBackAsync( new AppJoinDetailView(contactsModel)); } catch (Exception ex) { await ErrorHandler.ExceptionAsync(this, ex); } IsServiceActive = false; }
private async void ButtonAppJoin_ClickedAsync(object sender, EventArgs e) { try { // The invitations appear under each app and also under // the user for all apps. Here we query invitations for // the user ContactViewModel contactsModel = new ContactViewModel(BaseViewModels.Platform, null); contactsModel.EditInvitation.OwnedBy = BaseViewModels.Platform.Permit.Owner; await contactsModel.QueryInvitationsAsync(); await MainView.StackViewSkipBackAsync( new AppJoinDetailView(contactsModel)); } catch (Exception ex) { await DisplayAlert("Nester", ex.Message, "OK"); } }