示例#1
0
 public ResultsPageVm(IPageServiceZero pageService)
 {
     PopToRootCommand = new CommandBuilder()
                        .SetName("Test PopToRoot")
                        .SetExecuteAsync(() => pageService.PopToRootAsync()).Build();
 }
示例#2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="pageService"></param>
 public ResultsPageVm(IPageServiceZero pageService)
 {
     StartAgainCommand = new CommandBuilder().SetExecuteAsync(async() => await pageService.PopToRootAsync()).SetName("Restart").Build();
 }