in src/Forms/TrackProgressForm.cs [71:114]
private void AzureMigrateExportBackGroundWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
string processInfoMessage = "";
if (UserInputObj.CancellationContext.IsCancellationRequested)
processInfoMessage = "The process has been terminated.";
else if (ProgressBar.Value >= 100)
{
if (UserInputObj.WorkflowObj.IsExpressWorkflow) // This means express assessment has completed
processInfoMessage = $"Assessment has been completed. You can find the Core-Report and Opportunity-Report folders at {Directory.GetCurrentDirectory()}.\nAfter reviewing the reports you can open Azure_Migration_and_Modernization PowerBI template, and export PowerBI as a PowerPoint or PDF presentation.";
else if (!UserInputObj.WorkflowObj.IsExpressWorkflow && !string.IsNullOrEmpty(UserInputObj.WorkflowObj.Module))
{
if (UserInputObj.WorkflowObj.Module.Equals("Discovery")) // Custom Discovery completed
processInfoMessage = $"\"Discovered_VMs\" report has been generated at {Directory.GetCurrentDirectory()}\\Discovery-Report.\nYou can now do the required customizations in the report by specifying the environment, moving servers out of scope by deleting rows in the report, and then run assessment on the customized discovery scope.";
else if (UserInputObj.WorkflowObj.Module.Equals("Assessment")) // Custom Assessment completed
processInfoMessage = $"Assessment has been completed. You can find the Core-Report and Opportunity-Report folders at {Directory.GetCurrentDirectory()}.\nAfter reviewing the reports you can open Azure_Migration_and_Modernization PowerBI template, and export PowerBI as a PowerPoint or PDF presentation.";
else
processInfoMessage = "Unable to generate informational message regarding process completion, please review the log file.";
}
else
processInfoMessage = "Unable to generate informational message regarding process completion, please review the log file.";
}
else if (ProgressBar.Value < 100)
processInfoMessage = "An error has terminated the process. You can find the errors in the log file, resolve and retry. If the problem persists, write to us @ amesupport@microsoft.com";
else
processInfoMessage = "Unable to generate informational message regarding process completion, please review the log file.";
ProcessInfoTextBox.Clear();
ProcessInfoTextBox.Text = processInfoMessage;
if (ProgressBar.Value >= 100 && !UserInputObj.WorkflowObj.IsExpressWorkflow && !string.IsNullOrEmpty(UserInputObj.WorkflowObj.Module) && UserInputObj.WorkflowObj.Module.Equals("Discovery"))
{
mainFormObj.MakeTrackProgressActionButtonsEnabledDecisions(true, false);
}
else if (ProgressBar.Value < 100)
{
mainFormObj.MakeTrackProgressActionButtonsEnabledDecisions(false, true);
}
else
{
mainFormObj.MakeTrackProgressActionButtonsEnabledDecisions();
}
mainFormObj.MakeTrackProgressTabButtonEnableDecisions();
}