private void OnListSelectedPeople() { var selectedpeople = PeopleVms.Where(p => p.IsSelected).ToList(); var message = selectedpeople.Any() ? "The following people are selected\r\n " + string.Join("\r\n ", selectedpeople.Select(p => p.DisplayName)) : "No people are selected"; MessageBox.Show(message); }
private async Task OnListSelectedPeople() { var selectedpeople = PeopleVms.Where(p => p.IsSelected).ToList(); var message = selectedpeople.Any() ? "The following people are selected\r\n " + string.Join("\r\n ", selectedpeople.Select(p => p.DisplayName)) : "No people are selected"; await _dialogService.ShowMessageAsync(this, message).ConfigureAwait(false); }