public async Task <MessageBoxResult> ShowMessageAsync(MessageBoxWindowViewModel vm) { return(await Task.Run <MessageBoxResult>(() => { ItemsSource.Add(vm); return vm.Result; })); }
public MessageBoxResult ShowMessage(MessageBoxWindowViewModel vm) { ItemsSource.Add(vm); return(vm.Result); }