in AppInstallerFileBuilder/AppInstallerFileBuilder/Views/GenerateXMLView.xaml.cs [574:609]
private async void _displaySuccessDialog(IStorageFile file)
{
ContentDialog successDialog = new ContentDialog
{
Title = "File Created Successfully",
PrimaryButtonText = "Open AppInstaller File",
Content ="The file was created in this location: " + file.Path,
CloseButtonText = "Close",
};
ContentDialogResult result = await successDialog.ShowAsync();
// Delete the file if the user clicked the primary button.
/// Otherwise, do nothing.
if (result == ContentDialogResult.Primary)
{
// Set the option to show the picker
var options = new Windows.System.LauncherOptions();
options.DisplayApplicationPicker = true;
var success = await Windows.System.Launcher.LaunchFileAsync(file,options);
if (success)
{
Debug.WriteLine("success");
}
else
{
Debug.WriteLine("failed");
}
}
else
{
// The user clicked the CLoseButton, pressed ESC, Gamepad B, or the system back button.
// Do nothing.
}
}