DeploymentTracker.App.Windows.PackageDeployment.ShowRequiredDialogs C# (CSharp) Method

ShowRequiredDialogs() private method

Shows the required dialogs.
private ShowRequiredDialogs ( string azurePackagePath ) : void
azurePackagePath string The azure package path.
return void
        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
        }