예제 #1
0
 public async Task <MessageBoxResult> ShowMessageAsync(MessageBoxWindowViewModel vm)
 {
     return(await Task.Run <MessageBoxResult>(() =>
     {
         ItemsSource.Add(vm);
         return vm.Result;
     }));
 }
예제 #2
0
 public MessageBoxResult ShowMessage(MessageBoxWindowViewModel vm)
 {
     ItemsSource.Add(vm);
     return(vm.Result);
 }