/// <summary> /// /// </summary> private void GenerateDocumentation() { Cursor.Current = Cursors.WaitCursor; try { linkLabel6.Visible = false; progressBar1.Visible = true; if (!Utility.ValidateReportName(documenter.ReportName)) { throw new ApplicationException("Report title contains some invalid characters."); } BizTalkInstallation bi = new BizTalkInstallation(); bi.Server = this.server; bi.MgmtDatabaseName = this.mgmtDatabaseName; //documenter.Application = bi.GetApplicationDetail(this.appName); documenter.PercentageDocumentationComplete += new UpdatePercentageComplete(DocumenterPercentageDocumentationComplete); //if (radioAssembly.Checked == true) //{ // if (clbApplications.CheckedItems.Count == 0) // { // MessageBox.Show("No applications have been selected for documentation", "Error Generating Documentation", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); // return; // } // foreach (object item in clbApplications.CheckedItems) // { // string appName = item.ToString(); // BizTalkInstallation bi = new BizTalkInstallation(); // bi.Server = this.txtServerName.Text; // bi.MgmtDatabaseName = this.textBox1.Text; // documenter.Application = bi.GetApplicationDetail(appName); // break; // } // documenter.PublishType = PublishType.SpecificApplication; //} //else if (radioSchema.Checked == true) //{ // documenter.PublishType = PublishType.SchemaOnly; //} //if (executionMode == ExecutionMode.Interactive) //{ // documenter.Publisher = DeterminePublisher(this.comboBox1.SelectedItem.ToString()); //} //documenter.PublishType = PublishType.SpecificApplication; documenter.PublishType = PublishType.EntireConfiguration; documenter.ResourceFolder = this.txtResourceFolderName.Text; documenter.Publisher = DeterminePublisher(this.comboBox2.SelectedItem.ToString()); documenter.GenerateDocumentation(); } catch (Exception ex) { #if (DEBUG) MessageBox.Show(ex.ToString()); #endif MessageBox.Show(ex.Message, "Error Generating Documentation", MessageBoxButtons.OK, MessageBoxIcon.Error); } finally { progressBar1.Visible = false; linkLabel6.Visible = true; Cursor.Current = Cursors.Default; } return; }