A little less code
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user