private void ShowRequiredDialogs(string azurePackagePath)
{
// Contains only 1 config file. So show it
ServiceConfigViewer serviceConfigViewer = new ServiceConfigViewer(Directory.GetFiles(azurePackagePath, "*.cscfg", SearchOption.AllDirectories).First());
serviceConfigViewer.TopMost = true;
this.Invoke((MethodInvoker)delegate
{
// this bit runs on the UI thread
DialogResult result = serviceConfigViewer.ShowDialog();
if (result == System.Windows.Forms.DialogResult.Cancel)
{
throw new OperationCanceledException("Operation cancelled by user.");
}
});
// Now show Azure configuration form also
}