private void GenerateDocumentation()
{
using (this.m_formProgress = new FormProgress())
{
this.m_exception = null;
this.m_formProgress.Text = "Generating Documentation";
this.m_formProgress.Description = "Generating documentation...";
this.backgroundWorkerGenerate.RunWorkerAsync();
DialogResult res = this.m_formProgress.ShowDialog();
if (res != DialogResult.OK)
{
this.backgroundWorkerGenerate.CancelAsync();
}
}
if (this.m_exception != null)
{
MessageBox.Show(this, this.m_exception.Message + "\r\n\r\n" + this.m_exception.StackTrace, "Error");
this.m_exception = null;
}
}