private async Task ShowExitDialogAsync() { MessageDialog dialog = new MessageDialog("Do you want to restart the application now?"); UICommand yes = new UICommand("Yes"); dialog.Commands.Add(yes); dialog.Commands.Add(new UICommand("No")); if (await dialog.ShowAsync() == yes) { await restartService.RestartAsync(); } }
protected override async Task ExecuteAsync(CancellationToken cancellationToken) { await appDataService.DeleteAllAsync(); await restartService.RestartAsync(); }
protected override async Task ExecuteAsync(CancellationToken cancellationToken) { developmentTools.IsTestDatabaseEnabled(isEnabled); await restartService.RestartAsync(); }
protected override Task ExecuteAsync(CancellationToken cancellationToken) => restartService.RestartAsync();
public override async void Execute() { developmentTools.IsTestDatabaseEnabled(isEnabled); await restartService.RestartAsync(); }