A little less code

This commit is contained in:
Tracy Pearson
2022-08-12 12:35:16 -04:00
parent d714889ffa
commit eb86543e4a

View File

@@ -29,7 +29,7 @@ namespace WpfViewModelFirst
{ {
var currentDispatcher = Dispatcher.CurrentDispatcher; var currentDispatcher = Dispatcher.CurrentDispatcher;
CurrentViewModel = null; CurrentViewModel = null;
Task delay = Task<string>.Run(LongDelay).ContinueWith(c => LongDelay().ContinueWith(c =>
{ {
System.Diagnostics.Debug.WriteLine(c.Result); System.Diagnostics.Debug.WriteLine(c.Result);
CurrentViewModel = new Part2ViewModel(); CurrentViewModel = new Part2ViewModel();