private async void InstallVoiceCommands_Click(object sender, RoutedEventArgs e)
{
try
{
var storageFile = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///VoiceCommands.xml"));
await AIService.InstallVoiceCommands(storageFile);
parametersTextBlock.Text = "Voice commands installed";
}
catch (Exception ex)
{
Debug.WriteLine(ex);
resultTextBlock.Text = ex.ToString();
}
}