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