private async void OnOpenClientDetailView(int?clientId) { if (ClientDetailViewModel != null && ClientDetailViewModel.HasChanges) { var result = _messageDialogService.ShowOkCancelDialog("Do you want to cancel you're changes?", "Question"); if (result == MessageDialogResult.Cancel) { return; } } ClientDetailViewModel = _clientDetailViewModelCreator(); await ClientDetailViewModel.LoadAsync(clientId); }
private async void OnOpenClientDetaiView(int?partyId) { if (ClientDetailViewModel != null && ClientDetailViewModel.HasChanges) { var result = _messageDialogService.ShowOkCancelDialog("You've made changes. Navigate away?", "Question"); if (result == MessageDialogResult.Cancel) { return; } } ClientDetailViewModel = _clientDetailViewModelCreator(); await ClientDetailViewModel.LoadAsync(partyId); }