/Microsoft.Sdc.BiztalkDocumenter/Microsoft.Sdc.BiztalkDocumenter/Form1.cs
C# | 1843 lines | 1518 code | 72 blank | 253 comment | 41 complexity | bc589f287822d81686247dc9f5bd1a2f MD5 | raw file
-
- namespace Microsoft.Services.Tools.BiztalkDocumenter
- {
- using System;
- using System.Collections;
- using System.ComponentModel;
- using System.Configuration;
- using System.Drawing;
- using System.IO;
- using System.Reflection;
- using System.Windows.Forms;
- using Microsoft.Services.Tools.BiztalkDocumenter.Publishers;
- using Microsoft.Services.Tools.BiztalkDocumenter.Publishers.Word;
- using Microsoft.Services.Tools.BizTalkOM;
- using Microsoft.Services.Tools.BizTalkOM.Diagnostics;
-
- /// <summary>
- /// Summary description for Form1.
- /// </summary>
- public class Form1 : System.Windows.Forms.Form
- {
- #region private fields
- private static Documenter documenter = null;
- private static ExecutionMode executionMode = ExecutionMode.CommandLine;
- private static bool stop;
- private static bool showUsage = false;
- private static BizTalkInstallation bizTalkInstallation = new BizTalkInstallation();
-
- private System.ComponentModel.IContainer components;
- private System.Windows.Forms.Button btnBrowse;
- private System.Windows.Forms.Button button1;
- private System.Windows.Forms.Button button2;
- private System.Windows.Forms.CheckBox cbIncludeReferences;
- private System.Windows.Forms.CheckBox cbRulesConfig;
- private System.Windows.Forms.CheckBox cbShowOutput;
- private System.Windows.Forms.CheckedListBox clbApplications;
- private System.Windows.Forms.ComboBox comboBox1;
- private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog1;
- private System.Windows.Forms.GroupBox grpBoxAdvanced;
- private System.Windows.Forms.ImageList imageList1;
- private System.Windows.Forms.Label label10;
- private System.Windows.Forms.Label label11;
- private System.Windows.Forms.Label label17;
- private System.Windows.Forms.Label label18;
- private System.Windows.Forms.Label label19;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Label label21;
- private System.Windows.Forms.Label label22;
- private System.Windows.Forms.Label label24;
- private System.Windows.Forms.Label label25;
- private System.Windows.Forms.Label label26;
- private System.Windows.Forms.Label label27;
- private System.Windows.Forms.Label label29;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Label label30;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.Label label5;
- private System.Windows.Forms.Label label6;
- private System.Windows.Forms.Label label7;
- private System.Windows.Forms.Label label8;
- private System.Windows.Forms.Label label9;
- private System.Windows.Forms.LinkLabel linkLabel12;
- private System.Windows.Forms.LinkLabel linkLabel13;
- private System.Windows.Forms.LinkLabel linkLabel1;
- private System.Windows.Forms.LinkLabel linkLabel2;
- private System.Windows.Forms.LinkLabel linkLabel3;
- private System.Windows.Forms.LinkLabel linkLabel6;
- private System.Windows.Forms.LinkLabel linkLabel7;
- private System.Windows.Forms.LinkLabel linkLabel8;
- private System.Windows.Forms.LinkLabel linkLabel9;
- private System.Windows.Forms.OpenFileDialog dlgConfigFrameworkOpenFile;
- private System.Windows.Forms.Panel panel1;
- private System.Windows.Forms.Panel panel2;
- private System.Windows.Forms.Panel panel3;
- private System.Windows.Forms.Panel panel4;
- private System.Windows.Forms.Panel panel5;
- private System.Windows.Forms.Panel panel6;
- private System.Windows.Forms.PictureBox pictureBox1;
- private System.Windows.Forms.PictureBox pictureBox2;
- private System.Windows.Forms.PictureBox pictureBox3;
- private System.Windows.Forms.PictureBox pictureBox4;
- private System.Windows.Forms.ProgressBar progressBar1;
- private System.Windows.Forms.RadioButton radioAssembly;
- private System.Windows.Forms.RadioButton radioEntire;
- private System.Windows.Forms.SaveFileDialog dlgConfigFrameworkSaveFile;
- private System.Windows.Forms.TabControl tabControl1;
- private System.Windows.Forms.TabPage tabPage1;
- private System.Windows.Forms.TabPage tabPage2;
- private System.Windows.Forms.TabPage tabPage3;
- private System.Windows.Forms.TabPage tabPage4;
- private System.Windows.Forms.TextBox textBox1;
- private System.Windows.Forms.TextBox txtOutputDir;
- private System.Windows.Forms.TextBox txtReportTitle;
- private System.Windows.Forms.TextBox txtResourceFolder;
- private System.Windows.Forms.TextBox txtRulesDatabase;
- private System.Windows.Forms.TextBox txtRulesServer;
- private System.Windows.Forms.TextBox txtServerName;
- private System.Windows.Forms.TreeView tvOrchs;
- private SaveFileDialog dlgResultFileSave;
- private Microsoft.VisualBasic.PowerPacks.ShapeContainer shapeContainer1;
- private Microsoft.VisualBasic.PowerPacks.LineShape lineShape1;
- private TextBox txtConfigFrameworkFile;
- #endregion
-
-
- public Form1()
- {
- InitializeComponent();
- //comboBox1.SelectedIndex = 0;
-
- this.textBox1.Text = documenter.Database;
- this.txtServerName.Text = documenter.Server;
- this.txtOutputDir.Text = documenter.OutputDir;
- this.txtReportTitle.Text = documenter.ReportName;
- this.txtRulesServer.Text = documenter.RulesServer;
- this.txtRulesDatabase.Text = documenter.RulesDatabase;
-
- documenter.PercentageDocumentationComplete += new UpdatePercentageComplete(Documenter_PercentageDocumentationComplete);
- }
-
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main(string[] args)
- {
- TraceManager.SmartTrace.TraceIn();
-
- documenter = new Documenter();
-
- if (args.Length > 0)
- {
- ProcessArgs(args);
- // there may have been some overrides of the defaults (in the config)
- ProcessOverrides();
- }
- else
- {
- stop = true;
- executionMode = ExecutionMode.Interactive;
- }
-
-
-
- if (showUsage)
- {
- ShowUsage();
- return;
- }
- else
- {
- if (executionMode == ExecutionMode.Interactive)
- {
- documenter.SetDefaults();
- Application.Run(new Form1());
- }
- else
- {
- Form1 f1 = new Form1();
- f1.GenerateDocumentation();
- }
- }
- System.Diagnostics.Trace.WriteLine("Completed processing");
- return;
- }
-
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- protected override void Dispose(bool disposing)
- {
- if (disposing)
- {
- if (components != null)
- {
- components.Dispose();
- }
- }
-
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
- this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
- this.panel2 = new System.Windows.Forms.Panel();
- this.tabControl1 = new System.Windows.Forms.TabControl();
- this.tabPage1 = new System.Windows.Forms.TabPage();
- this.label25 = new System.Windows.Forms.Label();
- this.button2 = new System.Windows.Forms.Button();
- this.label24 = new System.Windows.Forms.Label();
- this.txtConfigFrameworkFile = new System.Windows.Forms.TextBox();
- this.panel3 = new System.Windows.Forms.Panel();
- this.pictureBox1 = new System.Windows.Forms.PictureBox();
- this.label26 = new System.Windows.Forms.Label();
- this.label19 = new System.Windows.Forms.Label();
- this.txtRulesDatabase = new System.Windows.Forms.TextBox();
- this.txtRulesServer = new System.Windows.Forms.TextBox();
- this.label7 = new System.Windows.Forms.Label();
- this.label8 = new System.Windows.Forms.Label();
- this.cbRulesConfig = new System.Windows.Forms.CheckBox();
- this.textBox1 = new System.Windows.Forms.TextBox();
- this.txtServerName = new System.Windows.Forms.TextBox();
- this.label3 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.tabPage2 = new System.Windows.Forms.TabPage();
- this.panel6 = new System.Windows.Forms.Panel();
- this.pictureBox2 = new System.Windows.Forms.PictureBox();
- this.label27 = new System.Windows.Forms.Label();
- this.label22 = new System.Windows.Forms.Label();
- this.grpBoxAdvanced = new System.Windows.Forms.GroupBox();
- this.cbIncludeReferences = new System.Windows.Forms.CheckBox();
- this.radioEntire = new System.Windows.Forms.RadioButton();
- this.clbApplications = new System.Windows.Forms.CheckedListBox();
- this.radioAssembly = new System.Windows.Forms.RadioButton();
- this.tabPage3 = new System.Windows.Forms.TabPage();
- this.panel5 = new System.Windows.Forms.Panel();
- this.pictureBox3 = new System.Windows.Forms.PictureBox();
- this.label29 = new System.Windows.Forms.Label();
- this.label21 = new System.Windows.Forms.Label();
- this.linkLabel9 = new System.Windows.Forms.LinkLabel();
- this.linkLabel8 = new System.Windows.Forms.LinkLabel();
- this.linkLabel7 = new System.Windows.Forms.LinkLabel();
- this.label11 = new System.Windows.Forms.Label();
- this.tvOrchs = new System.Windows.Forms.TreeView();
- this.tabPage4 = new System.Windows.Forms.TabPage();
- this.panel4 = new System.Windows.Forms.Panel();
- this.pictureBox4 = new System.Windows.Forms.PictureBox();
- this.label30 = new System.Windows.Forms.Label();
- this.label18 = new System.Windows.Forms.Label();
- this.label10 = new System.Windows.Forms.Label();
- this.label9 = new System.Windows.Forms.Label();
- this.txtResourceFolder = new System.Windows.Forms.TextBox();
- this.label5 = new System.Windows.Forms.Label();
- this.button1 = new System.Windows.Forms.Button();
- this.cbShowOutput = new System.Windows.Forms.CheckBox();
- this.txtReportTitle = new System.Windows.Forms.TextBox();
- this.label6 = new System.Windows.Forms.Label();
- this.label4 = new System.Windows.Forms.Label();
- this.comboBox1 = new System.Windows.Forms.ComboBox();
- this.txtOutputDir = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.btnBrowse = new System.Windows.Forms.Button();
- this.imageList1 = new System.Windows.Forms.ImageList(this.components);
- this.dlgConfigFrameworkOpenFile = new System.Windows.Forms.OpenFileDialog();
- this.dlgConfigFrameworkSaveFile = new System.Windows.Forms.SaveFileDialog();
- this.linkLabel1 = new System.Windows.Forms.LinkLabel();
- this.linkLabel2 = new System.Windows.Forms.LinkLabel();
- this.linkLabel3 = new System.Windows.Forms.LinkLabel();
- this.label17 = new System.Windows.Forms.Label();
- this.panel1 = new System.Windows.Forms.Panel();
- this.linkLabel6 = new System.Windows.Forms.LinkLabel();
- this.progressBar1 = new System.Windows.Forms.ProgressBar();
- this.linkLabel12 = new System.Windows.Forms.LinkLabel();
- this.linkLabel13 = new System.Windows.Forms.LinkLabel();
- this.dlgResultFileSave = new System.Windows.Forms.SaveFileDialog();
- this.shapeContainer1 = new Microsoft.VisualBasic.PowerPacks.ShapeContainer();
- this.lineShape1 = new Microsoft.VisualBasic.PowerPacks.LineShape();
- this.panel2.SuspendLayout();
- this.tabControl1.SuspendLayout();
- this.tabPage1.SuspendLayout();
- this.panel3.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
- this.tabPage2.SuspendLayout();
- this.panel6.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
- this.grpBoxAdvanced.SuspendLayout();
- this.tabPage3.SuspendLayout();
- this.panel5.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
- this.tabPage4.SuspendLayout();
- this.panel4.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit();
- this.SuspendLayout();
- //
- // folderBrowserDialog1
- //
- this.folderBrowserDialog1.HelpRequest += new System.EventHandler(this.folderBrowserDialog1_HelpRequest);
- //
- // panel2
- //
- this.panel2.Controls.Add(this.tabControl1);
- this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
- this.panel2.Location = new System.Drawing.Point(0, 0);
- this.panel2.Name = "panel2";
- this.panel2.Size = new System.Drawing.Size(667, 498);
- this.panel2.TabIndex = 23;
- //
- // tabControl1
- //
- this.tabControl1.Controls.Add(this.tabPage1);
- this.tabControl1.Controls.Add(this.tabPage2);
- this.tabControl1.Controls.Add(this.tabPage3);
- this.tabControl1.Controls.Add(this.tabPage4);
- this.tabControl1.Location = new System.Drawing.Point(-10, -28);
- this.tabControl1.Name = "tabControl1";
- this.tabControl1.SelectedIndex = 0;
- this.tabControl1.Size = new System.Drawing.Size(682, 536);
- this.tabControl1.TabIndex = 34;
- //
- // tabPage1
- //
- this.tabPage1.BackColor = System.Drawing.Color.White;
- this.tabPage1.Controls.Add(this.label25);
- this.tabPage1.Controls.Add(this.button2);
- this.tabPage1.Controls.Add(this.label24);
- this.tabPage1.Controls.Add(this.txtConfigFrameworkFile);
- this.tabPage1.Controls.Add(this.panel3);
- this.tabPage1.Controls.Add(this.txtRulesDatabase);
- this.tabPage1.Controls.Add(this.txtRulesServer);
- this.tabPage1.Controls.Add(this.label7);
- this.tabPage1.Controls.Add(this.label8);
- this.tabPage1.Controls.Add(this.cbRulesConfig);
- this.tabPage1.Controls.Add(this.textBox1);
- this.tabPage1.Controls.Add(this.txtServerName);
- this.tabPage1.Controls.Add(this.label3);
- this.tabPage1.Controls.Add(this.label2);
- this.tabPage1.Location = new System.Drawing.Point(4, 25);
- this.tabPage1.Name = "tabPage1";
- this.tabPage1.Size = new System.Drawing.Size(674, 507);
- this.tabPage1.TabIndex = 0;
- this.tabPage1.Text = "General";
- //
- // label25
- //
- this.label25.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label25.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.label25.Location = new System.Drawing.Point(134, 405);
- this.label25.Name = "label25";
- this.label25.Size = new System.Drawing.Size(461, 37);
- this.label25.TabIndex = 59;
- this.label25.Text = "Optional: Include the ConfigFramework.exe output XML to generate a system configu" +
- "ration overview";
- //
- // button2
- //
- this.button2.BackColor = System.Drawing.Color.Silver;
- this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.button2.Location = new System.Drawing.Point(515, 460);
- this.button2.Name = "button2";
- this.button2.Size = new System.Drawing.Size(29, 22);
- this.button2.TabIndex = 58;
- this.button2.Text = "...";
- this.button2.UseVisualStyleBackColor = false;
- this.button2.Click += new System.EventHandler(this.button2_Click);
- //
- // label24
- //
- this.label24.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label24.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.label24.Location = new System.Drawing.Point(134, 463);
- this.label24.Name = "label24";
- this.label24.Size = new System.Drawing.Size(192, 18);
- this.label24.TabIndex = 57;
- this.label24.Text = "ConfigFramework Output XML:";
- //
- // txtConfigFrameworkFile
- //
- this.txtConfigFrameworkFile.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.txtConfigFrameworkFile.Location = new System.Drawing.Point(326, 460);
- this.txtConfigFrameworkFile.Name = "txtConfigFrameworkFile";
- this.txtConfigFrameworkFile.Size = new System.Drawing.Size(183, 22);
- this.txtConfigFrameworkFile.TabIndex = 56;
- //
- // panel3
- //
- this.panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(206)))), ((int)(((byte)(48)))), ((int)(((byte)(21)))));
- this.panel3.Controls.Add(this.pictureBox1);
- this.panel3.Controls.Add(this.label26);
- this.panel3.Controls.Add(this.label19);
- this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
- this.panel3.Location = new System.Drawing.Point(0, 0);
- this.panel3.Name = "panel3";
- this.panel3.Size = new System.Drawing.Size(674, 46);
- this.panel3.TabIndex = 55;
- //
- // pictureBox1
- //
- this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
- this.pictureBox1.Location = new System.Drawing.Point(8, 1);
- this.pictureBox1.Name = "pictureBox1";
- this.pictureBox1.Size = new System.Drawing.Size(48, 44);
- this.pictureBox1.TabIndex = 3;
- this.pictureBox1.TabStop = false;
- //
- // label26
- //
- this.label26.ForeColor = System.Drawing.Color.White;
- this.label26.Location = new System.Drawing.Point(58, 28);
- this.label26.Name = "label26";
- this.label26.Size = new System.Drawing.Size(120, 26);
- this.label26.TabIndex = 2;
- this.label26.Text = "Server Options";
- //
- // label19
- //
- this.label19.BackColor = System.Drawing.Color.Transparent;
- this.label19.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label19.ForeColor = System.Drawing.Color.White;
- this.label19.Location = new System.Drawing.Point(58, 7);
- this.label19.Name = "label19";
- this.label19.Size = new System.Drawing.Size(470, 26);
- this.label19.TabIndex = 1;
- this.label19.Text = "Microsoft Services BizTalk Documenter";
- //
- // txtRulesDatabase
- //
- this.txtRulesDatabase.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.txtRulesDatabase.Enabled = false;
- this.txtRulesDatabase.Location = new System.Drawing.Point(326, 258);
- this.txtRulesDatabase.Name = "txtRulesDatabase";
- this.txtRulesDatabase.Size = new System.Drawing.Size(183, 22);
- this.txtRulesDatabase.TabIndex = 52;
- //
- // txtRulesServer
- //
- this.txtRulesServer.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.txtRulesServer.Enabled = false;
- this.txtRulesServer.Location = new System.Drawing.Point(326, 231);
- this.txtRulesServer.Name = "txtRulesServer";
- this.txtRulesServer.Size = new System.Drawing.Size(183, 22);
- this.txtRulesServer.TabIndex = 49;
- //
- // label7
- //
- this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.label7.Location = new System.Drawing.Point(77, 261);
- this.label7.Name = "label7";
- this.label7.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
- this.label7.Size = new System.Drawing.Size(230, 18);
- this.label7.TabIndex = 51;
- this.label7.Text = "Rules Engine Database Name";
- //
- // label8
- //
- this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.label8.Location = new System.Drawing.Point(96, 233);
- this.label8.Name = "label8";
- this.label8.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
- this.label8.Size = new System.Drawing.Size(211, 19);
- this.label8.TabIndex = 50;
- this.label8.Text = "Rules Engine Server Name";
- //
- // cbRulesConfig
- //
- this.cbRulesConfig.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.cbRulesConfig.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.cbRulesConfig.Location = new System.Drawing.Point(96, 185);
- this.cbRulesConfig.Name = "cbRulesConfig";
- this.cbRulesConfig.Size = new System.Drawing.Size(288, 27);
- this.cbRulesConfig.TabIndex = 48;
- this.cbRulesConfig.Text = "Include Rules Engine Documentation";
- this.cbRulesConfig.CheckedChanged += new System.EventHandler(this.IncludeRulesChecked);
- //
- // textBox1
- //
- this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.textBox1.Location = new System.Drawing.Point(326, 138);
- this.textBox1.Name = "textBox1";
- this.textBox1.Size = new System.Drawing.Size(183, 22);
- this.textBox1.TabIndex = 40;
- //
- // txtServerName
- //
- this.txtServerName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.txtServerName.Location = new System.Drawing.Point(326, 111);
- this.txtServerName.Name = "txtServerName";
- this.txtServerName.Size = new System.Drawing.Size(183, 22);
- this.txtServerName.TabIndex = 34;
- //
- // label3
- //
- this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.label3.Location = new System.Drawing.Point(77, 138);
- this.label3.Name = "label3";
- this.label3.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
- this.label3.Size = new System.Drawing.Size(230, 19);
- this.label3.TabIndex = 39;
- this.label3.Text = "Management Database Name";
- //
- // label2
- //
- this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.label2.Location = new System.Drawing.Point(96, 111);
- this.label2.Name = "label2";
- this.label2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
- this.label2.Size = new System.Drawing.Size(211, 18);
- this.label2.TabIndex = 38;
- this.label2.Text = "Management Server Name";
- //
- // tabPage2
- //
- this.tabPage2.BackColor = System.Drawing.Color.White;
- this.tabPage2.Controls.Add(this.panel6);
- this.tabPage2.Controls.Add(this.grpBoxAdvanced);
- this.tabPage2.Location = new System.Drawing.Point(4, 25);
- this.tabPage2.Name = "tabPage2";
- this.tabPage2.Size = new System.Drawing.Size(674, 507);
- this.tabPage2.TabIndex = 1;
- this.tabPage2.Text = "Advanced";
- //
- // panel6
- //
- this.panel6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(206)))), ((int)(((byte)(48)))), ((int)(((byte)(21)))));
- this.panel6.Controls.Add(this.pictureBox2);
- this.panel6.Controls.Add(this.label27);
- this.panel6.Controls.Add(this.label22);
- this.panel6.Dock = System.Windows.Forms.DockStyle.Top;
- this.panel6.Location = new System.Drawing.Point(0, 0);
- this.panel6.Name = "panel6";
- this.panel6.Size = new System.Drawing.Size(674, 46);
- this.panel6.TabIndex = 55;
- //
- // pictureBox2
- //
- this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image")));
- this.pictureBox2.Location = new System.Drawing.Point(10, 1);
- this.pictureBox2.Name = "pictureBox2";
- this.pictureBox2.Size = new System.Drawing.Size(48, 44);
- this.pictureBox2.TabIndex = 4;
- this.pictureBox2.TabStop = false;
- //
- // label27
- //
- this.label27.ForeColor = System.Drawing.Color.White;
- this.label27.Location = new System.Drawing.Point(58, 28);
- this.label27.Name = "label27";
- this.label27.Size = new System.Drawing.Size(182, 26);
- this.label27.TabIndex = 3;
- this.label27.Text = "Select Documentation Type";
- //
- // label22
- //
- this.label22.BackColor = System.Drawing.Color.Transparent;
- this.label22.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label22.ForeColor = System.Drawing.Color.White;
- this.label22.Location = new System.Drawing.Point(58, 7);
- this.label22.Name = "label22";
- this.label22.Size = new System.Drawing.Size(470, 26);
- this.label22.TabIndex = 1;
- this.label22.Text = "Microsoft Services BizTalk Documenter";
- //
- // grpBoxAdvanced
- //
- this.grpBoxAdvanced.Controls.Add(this.cbIncludeReferences);
- this.grpBoxAdvanced.Controls.Add(this.radioEntire);
- this.grpBoxAdvanced.Controls.Add(this.clbApplications);
- this.grpBoxAdvanced.Controls.Add(this.radioAssembly);
- this.grpBoxAdvanced.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.grpBoxAdvanced.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.grpBoxAdvanced.Location = new System.Drawing.Point(25, 65);
- this.grpBoxAdvanced.Name = "grpBoxAdvanced";
- this.grpBoxAdvanced.Size = new System.Drawing.Size(599, 421);
- this.grpBoxAdvanced.TabIndex = 32;
- this.grpBoxAdvanced.TabStop = false;
- this.grpBoxAdvanced.Text = "Options";
- //
- // cbIncludeReferences
- //
- this.cbIncludeReferences.AutoSize = true;
- this.cbIncludeReferences.Checked = true;
- this.cbIncludeReferences.CheckState = System.Windows.Forms.CheckState.Checked;
- this.cbIncludeReferences.Enabled = false;
- this.cbIncludeReferences.Location = new System.Drawing.Point(18, 385);
- this.cbIncludeReferences.Name = "cbIncludeReferences";
- this.cbIncludeReferences.Size = new System.Drawing.Size(224, 21);
- this.cbIncludeReferences.TabIndex = 4;
- this.cbIncludeReferences.Text = "Include referenced applications";
- //
- // radioEntire
- //
- this.radioEntire.Checked = true;
- this.radioEntire.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.radioEntire.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.radioEntire.Location = new System.Drawing.Point(19, 28);
- this.radioEntire.Name = "radioEntire";
- this.radioEntire.Size = new System.Drawing.Size(298, 27);
- this.radioEntire.TabIndex = 3;
- this.radioEntire.TabStop = true;
- this.radioEntire.Text = "Document Entire Configuration";
- //
- // clbApplications
- //
- this.clbApplications.BackColor = System.Drawing.SystemColors.InactiveBorder;
- this.clbApplications.CheckOnClick = true;
- this.clbApplications.Enabled = false;
- this.clbApplications.FormattingEnabled = true;
- this.clbApplications.HorizontalScrollbar = true;
- this.clbApplications.Location = new System.Drawing.Point(19, 90);
- this.clbApplications.Name = "clbApplications";
- this.clbApplications.Size = new System.Drawing.Size(567, 202);
- this.clbApplications.Sorted = true;
- this.clbApplications.TabIndex = 2;
- //
- // radioAssembly
- //
- this.radioAssembly.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.radioAssembly.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.radioAssembly.Location = new System.Drawing.Point(19, 53);
- this.radioAssembly.Name = "radioAssembly";
- this.radioAssembly.Size = new System.Drawing.Size(298, 28);
- this.radioAssembly.TabIndex = 0;
- this.radioAssembly.Text = "Specific BizTalk Application";
- this.radioAssembly.CheckedChanged += new System.EventHandler(this.AdvancedCheckedChanged);
- //
- // tabPage3
- //
- this.tabPage3.BackColor = System.Drawing.Color.White;
- this.tabPage3.Controls.Add(this.panel5);
- this.tabPage3.Controls.Add(this.linkLabel9);
- this.tabPage3.Controls.Add(this.linkLabel8);
- this.tabPage3.Controls.Add(this.linkLabel7);
- this.tabPage3.Controls.Add(this.label11);
- this.tabPage3.Controls.Add(this.tvOrchs);
- this.tabPage3.Location = new System.Drawing.Point(4, 25);
- this.tabPage3.Name = "tabPage3";
- this.tabPage3.Size = new System.Drawing.Size(674, 507);
- this.tabPage3.TabIndex = 2;
- this.tabPage3.Text = "Orchestration Info";
- //
- // panel5
- //
- this.panel5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(206)))), ((int)(((byte)(48)))), ((int)(((byte)(21)))));
- this.panel5.Controls.Add(this.pictureBox3);
- this.panel5.Controls.Add(this.label29);
- this.panel5.Controls.Add(this.label21);
- this.panel5.Dock = System.Windows.Forms.DockStyle.Top;
- this.panel5.Location = new System.Drawing.Point(0, 0);
- this.panel5.Name = "panel5";
- this.panel5.Size = new System.Drawing.Size(674, 46);
- this.panel5.TabIndex = 65;
- //
- // pictureBox3
- //
- this.pictureBox3.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox3.Image")));
- this.pictureBox3.Location = new System.Drawing.Point(10, 1);
- this.pictureBox3.Name = "pictureBox3";
- this.pictureBox3.Size = new System.Drawing.Size(48, 44);
- this.pictureBox3.TabIndex = 5;
- this.pictureBox3.TabStop = false;
- //
- // label29
- //
- this.label29.ForeColor = System.Drawing.Color.White;
- this.label29.Location = new System.Drawing.Point(58, 28);
- this.label29.Name = "label29";
- this.label29.Size = new System.Drawing.Size(182, 26);
- this.label29.TabIndex = 4;
- this.label29.Text = "Orchestration Info";
- //
- // label21
- //
- this.label21.BackColor = System.Drawing.Color.Transparent;
- this.label21.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label21.ForeColor = System.Drawing.Color.White;
- this.label21.Location = new System.Drawing.Point(58, 7);
- this.label21.Name = "label21";
- this.label21.Size = new System.Drawing.Size(470, 26);
- this.label21.TabIndex = 1;
- this.label21.Text = "Microsoft Services BizTalk Documenter";
- //
- // linkLabel9
- //
- this.linkLabel9.ActiveLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel9.DisabledLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.linkLabel9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel9.Image = ((System.Drawing.Image)(resources.GetObject("linkLabel9.Image")));
- this.linkLabel9.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.linkLabel9.LinkArea = new System.Windows.Forms.LinkArea(0, 19);
- this.linkLabel9.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline;
- this.linkLabel9.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel9.Location = new System.Drawing.Point(19, 138);
- this.linkLabel9.Name = "linkLabel9";
- this.linkLabel9.Size = new System.Drawing.Size(167, 27);
- this.linkLabel9.TabIndex = 64;
- this.linkLabel9.TabStop = true;
- this.linkLabel9.Text = "List Orchestrations";
- this.linkLabel9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.linkLabel9.VisitedLinkColor = System.Drawing.Color.RoyalBlue;
- this.linkLabel9.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel9_LinkClicked);
- //
- // linkLabel8
- //
- this.linkLabel8.ActiveLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel8.DisabledLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.linkLabel8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel8.Image = ((System.Drawing.Image)(resources.GetObject("linkLabel8.Image")));
- this.linkLabel8.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.linkLabel8.LinkArea = new System.Windows.Forms.LinkArea(0, 28);
- this.linkLabel8.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline;
- this.linkLabel8.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel8.Location = new System.Drawing.Point(283, 425);
- this.linkLabel8.Name = "linkLabel8";
- this.linkLabel8.Size = new System.Drawing.Size(246, 26);
- this.linkLabel8.TabIndex = 63;
- this.linkLabel8.TabStop = true;
- this.linkLabel8.Text = "Save Selected Orchestrations";
- this.linkLabel8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.linkLabel8.VisitedLinkColor = System.Drawing.Color.RoyalBlue;
- this.linkLabel8.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel8_LinkClicked);
- //
- // linkLabel7
- //
- this.linkLabel7.ActiveLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel7.DisabledLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.linkLabel7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel7.Image = ((System.Drawing.Image)(resources.GetObject("linkLabel7.Image")));
- this.linkLabel7.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.linkLabel7.LinkArea = new System.Windows.Forms.LinkArea(0, 26);
- this.linkLabel7.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline;
- this.linkLabel7.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel7.Location = new System.Drawing.Point(24, 425);
- this.linkLabel7.Name = "linkLabel7";
- this.linkLabel7.Size = new System.Drawing.Size(224, 26);
- this.linkLabel7.TabIndex = 62;
- this.linkLabel7.TabStop = true;
- this.linkLabel7.Text = "View Current Orchestration";
- this.linkLabel7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.linkLabel7.VisitedLinkColor = System.Drawing.Color.RoyalBlue;
- this.linkLabel7.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel7_LinkClicked);
- //
- // label11
- //
- this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label11.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.label11.Location = new System.Drawing.Point(29, 65);
- this.label11.Name = "label11";
- this.label11.Size = new System.Drawing.Size(595, 46);
- this.label11.TabIndex = 60;
- this.label11.Text = resources.GetString("label11.Text");
- this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // tvOrchs
- //
- this.tvOrchs.CheckBoxes = true;
- this.tvOrchs.Location = new System.Drawing.Point(19, 175);
- this.tvOrchs.Name = "tvOrchs";
- this.tvOrchs.Size = new System.Drawing.Size(605, 231);
- this.tvOrchs.Sorted = true;
- this.tvOrchs.TabIndex = 0;
- this.tvOrchs.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.TvOrchsAfterCheck);
- this.tvOrchs.DoubleClick += new System.EventHandler(this.TvOrchsDoubleClick);
- //
- // tabPage4
- //
- this.tabPage4.BackColor = System.Drawing.Color.White;
- this.tabPage4.Controls.Add(this.panel4);
- this.tabPage4.Controls.Add(this.label10);
- this.tabPage4.Controls.Add(this.label9);
- this.tabPage4.Controls.Add(this.txtResourceFolder);
- this.tabPage4.Controls.Add(this.label5);
- this.tabPage4.Controls.Add(this.button1);
- this.tabPage4.Controls.Add(this.cbShowOutput);
- this.tabPage4.Controls.Add(this.txtReportTitle);
- this.tabPage4.Controls.Add(this.label6);
- this.tabPage4.Controls.Add(this.label4);
- this.tabPage4.Controls.Add(this.comboBox1);
- this.tabPage4.Controls.Add(this.txtOutputDir);
- this.tabPage4.Controls.Add(this.label1);
- this.tabPage4.Controls.Add(this.btnBrowse);
- this.tabPage4.Location = new System.Drawing.Point(4, 25);
- this.tabPage4.Name = "tabPage4";
- this.tabPage4.Size = new System.Drawing.Size(674, 507);
- this.tabPage4.TabIndex = 3;
- this.tabPage4.Text = "Output";
- //
- // panel4
- //
- this.panel4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(206)))), ((int)(((byte)(48)))), ((int)(((byte)(21)))));
- this.panel4.Controls.Add(this.pictureBox4);
- this.panel4.Controls.Add(this.label30);
- this.panel4.Controls.Add(this.label18);
- this.panel4.Dock = System.Windows.Forms.DockStyle.Top;
- this.panel4.Location = new System.Drawing.Point(0, 0);
- this.panel4.Name = "panel4";
- this.panel4.Size = new System.Drawing.Size(674, 46);
- this.panel4.TabIndex = 61;
- //
- // pictureBox4
- //
- this.pictureBox4.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox4.Image")));
- this.pictureBox4.Location = new System.Drawing.Point(10, 1);
- this.pictureBox4.Name = "pictureBox4";
- this.pictureBox4.Size = new System.Drawing.Size(48, 44);
- this.pictureBox4.TabIndex = 5;
- this.pictureBox4.TabStop = false;
- //
- // label30
- //
- this.label30.ForeColor = System.Drawing.Color.White;
- this.label30.Location = new System.Drawing.Point(58, 28);
- this.label30.Name = "label30";
- this.label30.Size = new System.Drawing.Size(182, 26);
- this.label30.TabIndex = 4;
- this.label30.Text = "Output Options";
- //
- // label18
- //
- this.label18.BackColor = System.Drawing.Color.Transparent;
- this.label18.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label18.ForeColor = System.Drawing.Color.White;
- this.label18.Location = new System.Drawing.Point(58, 7);
- this.label18.Name = "label18";
- this.label18.Size = new System.Drawing.Size(470, 26);
- this.label18.TabIndex = 1;
- this.label18.Text = "Microsoft Services BizTalk Documenter";
- this.label18.Click += new System.EventHandler(this.label18_Click);
- //
- // label10
- //
- this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.label10.Location = new System.Drawing.Point(19, 323);
- this.label10.Name = "label10";
- this.label10.Size = new System.Drawing.Size(576, 55);
- this.label10.TabIndex = 60;
- this.label10.Text = "Any files and subdirectories contained within the resource folder will be compile" +
- "d into the CHM so that you can enhance your documentation by providing any furth" +
- "er html information";
- this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // label9
- //
- this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.label9.Location = new System.Drawing.Point(48, 258);
- this.label9.Name = "label9";
- this.label9.Size = new System.Drawing.Size(528, 56);
- this.label9.TabIndex = 59;
- this.label9.Text = "If you are using the CHM output provider you may specify the name of a folder con" +
- "taining a \'titlePage.htm\' and any associated images to produce a custom look and" +
- " feel to your CHM title page.";
- this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // txtResourceFolder
- //
- this.txtResourceFolder.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.txtResourceFolder.Location = new System.Drawing.Point(221, 406);
- this.txtResourceFolder.Name = "txtResourceFolder";
- this.txtResourceFolder.Size = new System.Drawing.Size(249, 22);
- this.txtResourceFolder.TabIndex = 56;
- //
- // label5
- //
- this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.label5.Location = new System.Drawing.Point(86, 408);
- this.label5.Name = "label5";
- this.label5.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
- this.label5.Size = new System.Drawing.Size(125, 19);
- this.label5.TabIndex = 58;
- this.label5.Text = "Resource Folder";
- //
- // button1
- //
- this.button1.BackColor = System.Drawing.Color.Silver;
- this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.button1.Location = new System.Drawing.Point(476, 406);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(29, 22);
- this.button1.TabIndex = 57;
- this.button1.Text = "...";
- this.button1.UseVisualStyleBackColor = false;
- this.button1.Click += new System.EventHandler(this.btnBrowse2_Click);
- //
- // cbShowOutput
- //
- this.cbShowOutput.Checked = true;
- this.cbShowOutput.CheckState = System.Windows.Forms.CheckState.Checked;
- this.cbShowOutput.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.cbShowOutput.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.cbShowOutput.Location = new System.Drawing.Point(221, 212);
- this.cbShowOutput.Name = "cbShowOutput";
- this.cbShowOutput.Size = new System.Drawing.Size(240, 28);
- this.cbShowOutput.TabIndex = 55;
- this.cbShowOutput.Text = "Show Output On Completion";
- //
- // txtReportTitle
- //
- this.txtReportTitle.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.txtReportTitle.Location = new System.Drawing.Point(221, 92);
- this.txtReportTitle.Name = "txtReportTitle";
- this.txtReportTitle.Size = new System.Drawing.Size(272, 22);
- this.txtReportTitle.TabIndex = 53;
- //
- // label6
- //
- this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.label6.Location = new System.Drawing.Point(125, 95);
- this.label6.Name = "label6";
- this.label6.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
- this.label6.Size = new System.Drawing.Size(86, 18);
- this.label6.TabIndex = 54;
- this.label6.Text = "Report Title";
- //
- // label4
- //
- this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.label4.Location = new System.Drawing.Point(96, 150);
- this.label4.Name = "label4";
- this.label4.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
- this.label4.Size = new System.Drawing.Size(115, 18);
- this.label4.TabIndex = 52;
- this.label4.Text = "Output Provider";
- //
- // comboBox1
- //
- this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.comboBox1.FormattingEnabled = true;
- this.comboBox1.Location = new System.Drawing.Point(221, 148);
- this.comboBox1.Name = "comboBox1";
- this.comboBox1.Size = new System.Drawing.Size(275, 24);
- this.comboBox1.TabIndex = 51;
- this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.ProviderSelectedIndexChanged);
- //
- // txtOutputDir
- //
- this.txtOutputDir.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.txtOutputDir.Location = new System.Drawing.Point(221, 120);
- this.txtOutputDir.Name = "txtOutputDir";
- this.txtOutputDir.Size = new System.Drawing.Size(240, 22);
- this.txtOutputDir.TabIndex = 48;
- //
- // label1
- //
- this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.label1.Location = new System.Drawing.Point(115, 122);
- this.label1.Name = "label1";
- this.label1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
- this.label1.Size = new System.Drawing.Size(96, 19);
- this.label1.TabIndex = 50;
- this.label1.Text = "Output Folder";
- //
- // btnBrowse
- //
- this.btnBrowse.BackColor = System.Drawing.Color.Silver;
- this.btnBrowse.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.btnBrowse.Location = new System.Drawing.Point(466, 120);
- this.btnBrowse.Name = "btnBrowse";
- this.btnBrowse.Size = new System.Drawing.Size(28, 22);
- this.btnBrowse.TabIndex = 49;
- this.btnBrowse.Text = "...";
- this.btnBrowse.UseVisualStyleBackColor = false;
- this.btnBrowse.Click += new System.EventHandler(this.btnBrowse_Click);
- //
- // imageList1
- //
- this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
- this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
- this.imageList1.Images.SetKeyName(0, "");
- this.imageList1.Images.SetKeyName(1, "");
- this.imageList1.Images.SetKeyName(2, "");
- this.imageList1.Images.SetKeyName(3, "");
- this.imageList1.Images.SetKeyName(4, "");
- this.imageList1.Images.SetKeyName(5, "");
- this.imageList1.Images.SetKeyName(6, "");
- this.imageList1.Images.SetKeyName(7, "");
- this.imageList1.Images.SetKeyName(8, "");
- this.imageList1.Images.SetKeyName(9, "");
- //
- // dlgConfigFrameworkOpenFile
- //
- this.dlgConfigFrameworkOpenFile.Filter = "XML Files|*.xml";
- this.dlgConfigFrameworkOpenFile.Title = "Select configuration file";
- this.dlgConfigFrameworkOpenFile.FileOk += new System.ComponentModel.CancelEventHandler(this.dlgConfigFrameworkOpenFile_FileOk);
- //
- // dlgConfigFrameworkSaveFile
- //
- this.dlgConfigFrameworkSaveFile.Filter = "XML Files|*.xml";
- this.dlgConfigFrameworkSaveFile.Title = "Save configuration file";
- this.dlgConfigFrameworkSaveFile.FileOk += new System.ComponentModel.CancelEventHandler(this.dlgConfigFrameworkSaveFile_FileOk);
- //
- // linkLabel1
- //
- this.linkLabel1.ActiveLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel1.DisabledLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.linkLabel1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel1.Image = ((System.Drawing.Image)(resources.GetObject("linkLabel1.Image")));
- this.linkLabel1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.linkLabel1.LinkArea = new System.Windows.Forms.LinkArea(0, 14);
- this.linkLabel1.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline;
- this.linkLabel1.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel1.Location = new System.Drawing.Point(26, 584);
- this.linkLabel1.Name = "linkLabel1";
- this.linkLabel1.Size = new System.Drawing.Size(144, 26);
- this.linkLabel1.TabIndex = 25;
- this.linkLabel1.TabStop = true;
- this.linkLabel1.Text = "Output Options";
- this.linkLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.linkLabel1.VisitedLinkColor = System.Drawing.Color.RoyalBlue;
- this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
- //
- // linkLabel2
- //
- this.linkLabel2.ActiveLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel2.DisabledLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.linkLabel2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel2.Image = ((System.Drawing.Image)(resources.GetObject("linkLabel2.Image")));
- this.linkLabel2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.linkLabel2.LinkArea = new System.Windows.Forms.LinkArea(0, 18);
- this.linkLabel2.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline;
- this.linkLabel2.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel2.Location = new System.Drawing.Point(286, 584);
- this.linkLabel2.Name = "linkLabel2";
- this.linkLabel2.Size = new System.Drawing.Size(338, 26);
- this.linkLabel2.TabIndex = 26;
- this.linkLabel2.TabStop = true;
- this.linkLabel2.Text = "Select Assemblies And Orchestrations";
- this.linkLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- this.linkLabel2.UseCompatibleTextRendering = true;
- this.linkLabel2.VisitedLinkColor = System.Drawing.Color.RoyalBlue;
- this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked);
- //
- // linkLabel3
- //
- this.linkLabel3.ActiveLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel3.DisabledLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.linkLabel3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel3.Image = ((System.Drawing.Image)(resources.GetObject("linkLabel3.Image")));
- this.linkLabel3.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.linkLabel3.LinkArea = new System.Windows.Forms.LinkArea(0, 25);
- this.linkLabel3.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline;
- this.linkLabel3.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel3.Location = new System.Drawing.Point(286, 556);
- this.linkLabel3.Name = "linkLabel3";
- this.linkLabel3.Size = new System.Drawing.Size(230, 27);
- this.linkLabel3.TabIndex = 27;
- this.linkLabel3.TabStop = true;
- this.linkLabel3.Text = "Select Documentation Scope";
- this.linkLabel3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.linkLabel3.UseCompatibleTextRendering = true;
- this.linkLabel3.VisitedLinkColor = System.Drawing.Color.RoyalBlue;
- this.linkLabel3.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel3_LinkClicked);
- //
- // label17
- //
- this.label17.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label17.Location = new System.Drawing.Point(10, 374);
- this.label17.Name = "label17";
- this.label17.Size = new System.Drawing.Size(249, 26);
- this.label17.TabIndex = 30;
- this.label17.Text = "Advanced Documentation Options:";
- //
- // panel1
- //
- this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
- this.panel1.Location = new System.Drawing.Point(259, 383);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(365, 4);
- this.panel1.TabIndex = 31;
- //
- // linkLabel6
- //
- this.linkLabel6.ActiveLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel6.DisabledLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.linkLabel6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel6.Image = ((System.Drawing.Image)(resources.GetObject("linkLabel6.Image")));
- this.linkLabel6.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.linkLabel6.LinkArea = new System.Windows.Forms.LinkArea(0, 22);
- this.linkLabel6.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline;
- this.linkLabel6.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel6.Location = new System.Drawing.Point(19, 629);
- this.linkLabel6.Name = "linkLabel6";
- this.linkLabel6.Size = new System.Drawing.Size(211, 26);
- this.linkLabel6.TabIndex = 32;
- this.linkLabel6.TabStop = true;
- this.linkLabel6.Text = "Generate Documentation";
- this.linkLabel6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.linkLabel6.VisitedLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel6.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel6_LinkClicked);
- //
- // progressBar1
- //
- this.progressBar1.Location = new System.Drawing.Point(292, 631);
- this.progressBar1.Name = "progressBar1";
- this.progressBar1.Size = new System.Drawing.Size(345, 19);
- this.progressBar1.TabIndex = 55;
- this.progressBar1.Visible = false;
- //
- // linkLabel12
- //
- this.linkLabel12.ActiveLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel12.DisabledLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.linkLabel12.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel12.Image = ((System.Drawing.Image)(resources.GetObject("linkLabel12.Image")));
- this.linkLabel12.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.linkLabel12.LinkArea = new System.Windows.Forms.LinkArea(0, 14);
- this.linkLabel12.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline;
- this.linkLabel12.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel12.Location = new System.Drawing.Point(26, 556);
- this.linkLabel12.Name = "linkLabel12";
- this.linkLabel12.Size = new System.Drawing.Size(144, 27);
- this.linkLabel12.TabIndex = 56;
- this.linkLabel12.TabStop = true;
- this.linkLabel12.Text = "Server Options";
- this.linkLabel12.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.linkLabel12.VisitedLinkColor = System.Drawing.Color.RoyalBlue;
- this.linkLabel12.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel12_LinkClicked);
- //
- // linkLabel13
- //
- this.linkLabel13.ActiveLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel13.DisabledLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.linkLabel13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel13.Image = ((System.Drawing.Image)(resources.GetObject("linkLabel13.Image")));
- this.linkLabel13.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.linkLabel13.LinkArea = new System.Windows.Forms.LinkArea(0, 4);
- this.linkLabel13.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline;
- this.linkLabel13.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel13.Location = new System.Drawing.Point(278, 625);
- this.linkLabel13.Name = "linkLabel13";
- this.linkLabel13.Size = new System.Drawing.Size(68, 27);
- this.linkLabel13.TabIndex = 57;
- this.linkLabel13.TabStop = true;
- this.linkLabel13.Text = "Quit";
- this.linkLabel13.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.linkLabel13.VisitedLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(119)))), ((int)(((byte)(153)))));
- this.linkLabel13.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel13_LinkClicked);
- //
- // shapeContainer1
- //
- this.shapeContainer1.Location = new System.Drawing.Point(0, 0);
- this.shapeContainer1.Margin = new System.Windows.Forms.Padding(0);
- this.shapeContainer1.Name = "shapeContainer1";
- this.shapeContainer1.Shapes.AddRange(new Microsoft.VisualBasic.PowerPacks.Shape[] {
- this.lineShape1});
- this.shapeContainer1.Size = new System.Drawing.Size(667, 674);
- this.shapeContainer1.TabIndex = 58;
- this.shapeContainer1.TabStop = false;
- //
- // lineShape1
- //
- this.lineShape1.Name = "lineShape1";
- this.lineShape1.X1 = 10;
- this.lineShape1.X2 = 519;
- this.lineShape1.Y1 = 456;
- this.lineShape1.Y2 = 455;
- //
- // Form1
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
- this.BackColor = System.Drawing.Color.White;
- this.CancelButton = this.linkLabel13;
- this.ClientSize = new System.Drawing.Size(667, 674);
- this.Controls.Add(this.linkLabel13);
- this.Controls.Add(this.linkLabel12);
- this.Controls.Add(this.progressBar1);
- this.Controls.Add(this.linkLabel6);
- this.Controls.Add(this.panel1);
- this.Controls.Add(this.label17);
- this.Controls.Add(this.linkLabel3);
- this.Controls.Add(this.linkLabel2);
- this.Controls.Add(this.linkLabel1);
- this.Controls.Add(this.panel2);
- this.Controls.Add(this.shapeContainer1);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
- this.Name = "Form1";
- this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "Microsoft Services BizTalk Documenter";
- this.Load += new System.EventHandler(this.Form1_Load);
- this.panel2.ResumeLayout(false);
- this.tabControl1.ResumeLayout(false);
- this.tabPage1.ResumeLayout(false);
- this.tabPage1.PerformLayout();
- this.panel3.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
- this.tabPage2.ResumeLayout(false);
- this.panel6.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
- this.grpBoxAdvanced.ResumeLayout(false);
- this.grpBoxAdvanced.PerformLayout();
- this.tabPage3.ResumeLayout(false);
- this.panel5.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
- this.tabPage4.ResumeLayout(false);
- this.tabPage4.PerformLayout();
- this.panel4.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit();
- this.ResumeLayout(false);
-
- }
- #endregion
-
- #region DeterminePublisher
- private static IPublisher DeterminePublisher(string publisherName)
- {
- if (String.IsNullOrEmpty(publisherName) ||
- publisherName.ToLower().Contains("compiled") ||
- publisherName.ToLower().Contains("help") ||
- publisherName.ToLower().Contains("chm"))
- {
- return new CompiledHelpPublisher();
- }
- else
- {
- return new WordXmlPublisher();
- }
-
- }
- #endregion
-
- /// <summary>
- ///
- /// </summary>
- private void GenerateDocumentation()
- {
- Cursor.Current = Cursors.WaitCursor;
-
- try
- {
- linkLabel13.Visible = false;
- progressBar1.Visible = true;
-
- if (!ValidateReportName(documenter.ReportName))
- {
- throw new ApplicationException("Report title contains some invalid characters.");
- }
-
- 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;
- }
-
- documenter.Applications.Clear();
-
- foreach (object item in clbApplications.CheckedItems)
- {
- documenter.Applications.Add(item.ToString());
- }
-
- documenter.IncludeReferences = this.cbIncludeReferences.Checked;
- documenter.PublishType = PublishType.SpecificApplication;
- }
-
- if (executionMode == ExecutionMode.Interactive)
- {
- documenter.Publisher = DeterminePublisher(this.comboBox1.SelectedItem.ToString());
- }
-
- documenter.GenerateDocumentation();
- }
- catch (Exception ex)
- {
- #if(DEBUG)
- MessageBox.Show(ex.ToString());
- #endif
- if (executionMode == ExecutionMode.Interactive)
- {
- MessageBox.Show(ex.Message, "Error Generating Documentation", MessageBoxButtons.OK, MessageBoxIcon.Error);
- }
- else
- {
- Console.WriteLine(ex.Message);
- }
- }
- finally
- {
- progressBar1.Visible = false;
- linkLabel13.Visible = true;
- Cursor.Current = Cursors.Default;
- }
-
- return;
- }
-
- #region btnBrowse_Click
- private void btnBrowse_Click(object sender, System.EventArgs e)
- {
- DialogResult res = this.folderBrowserDialog1.ShowDialog();
- if (res == DialogResult.OK)
- {
- this.txtOutputDir.Text = this.folderBrowserDialog1.SelectedPath;
- }
- }
- #endregion
-
- #region btnGenerate_Click
- private void btnGenerate_Click(object sender, System.EventArgs e)
- {
- documenter.Server = this.txtServerName.Text;
- documenter.Database = this.textBox1.Text;
- documenter.OutputDir = txtOutputDir.Text;
- documenter.ReportName = this.txtReportTitle.Text;
- documenter.ShowOutput = this.cbShowOutput.Checked;
- documenter.RulesServer = this.txtRulesServer.Text;
- documenter.RulesDatabase = this.txtRulesDatabase.Text;
- documenter.DocumentRules = this.cbRulesConfig.Checked;
- documenter.ResourceFolder = this.txtResourceFolder.Text;
- documenter.IncludeReferences = this.cbIncludeReferences.Checked;
- this.GenerateDocumentation();
- }
- #endregion
-
- #region ProcessArgs
-
- private static void ProcessArgs(string[] args)
- {
- if (args.Length == 0)
- stop = true;
-
- ArgParser parser = new ArgParser(args);
- ParserError error;
-
- //Help is unique as it is not a classic 'argument' with a name and a value
- if (args[0].Equals("/help") || args[0].Equals("/h") || args[0].Equals("/?"))
- {
- Form1.showUsage = true;
- return;
- }
-
- bool useDefaults = parser.Exists("defaults", "def");
- if (useDefaults)
- {
- // Use the documenters in-built defaults where possible
- documenter.SetDefaults();
-
- documenter.Publisher = DeterminePublisher("Compiled Help");
- documenter.ShowOutput = true;
- }
- else
- {
- documenter.Server = GetSafeString(parser.GetValue("server", "s", out error));
- documenter.Database = GetSafeString(parser.GetValue("database", "d", out error));
- documenter.RulesServer = GetSafeString(parser.GetValue("rs", out error));
- documenter.RulesDatabase = GetSafeString(parser.GetValue("rd", out error));
-
- documenter.OutputDir = GetSafeString(parser.GetValue("outputdir", "o", out error));
- documenter.ReportName = GetSafeString(parser.GetValue("title", "t", out error));
- documenter.CustomDescriptionsFileName = GetSafeString(parser.GetValue("commentfile", "c", out error));
- documenter.DocumentRules = parser.Exists("rules");
- documenter.ShowOutput = parser.Exists("show");
- }
-
- string applications = GetSafeString(parser.GetValue("applications", "a", out error));
- if (!String.IsNullOrEmpty(applications))
- {
- documenter.PublishType = PublishType.SpecificApplication;
- documenter.Applications = Form1.SplitStringToArrayList(applications, ",", true);
- }
-
- string provider = GetSafeString(parser.GetValue("/provider", "p", out error));
- documenter.Publisher = Form1.DeterminePublisher(provider);
-
- // Allow a user specified folder even if the rest is set to defaults
- string outDir = GetSafeString(parser.GetValue("outputdir", "o", out error));
- if (!String.IsNullOrEmpty(outDir))
- {
- if (!Directory.Exists(outDir))
- {
- //TraceManager.SmartTrace.TraceInfo("attempting to create the specified folder");
- Directory.CreateDirectory(outDir);
- }
- documenter.OutputDir = outDir;
- }
-
- // check if a report name is specified
- string reportName = GetSafeString(parser.GetValue("title", "t", out error));
- if (!String.IsNullOrEmpty(reportName))
- {
- documenter.ReportName = reportName;
-
- }
-
- // check if rules are specified
- documenter.DocumentRules = parser.Exists("rules");
-
- // Finally , check if any overrides are specified in the config file
- }
-
- private static void ProcessOverrides()
- {
- bool allowOverrides = false;
- if (!String.IsNullOrEmpty(ConfigurationManager.AppSettings["allow_cmdline_overrides"]))
- {
- allowOverrides = Boolean.Parse(ConfigurationManager.AppSettings["allow_cmdline_overrides"]);
- }
- // currently we only support specific config overrides
- if (allowOverrides)
- {
- if (!String.IsNullOrEmpty(ConfigurationManager.AppSettings["default_output_folder"]))
- {
- documenter.OutputDir = ConfigurationManager.AppSettings["default_output_folder"];
- }
-
- if (!String.IsNullOrEmpty(ConfigurationManager.AppSettings["default_report_name"]))
- {
- documenter.ReportName = ConfigurationManager.AppSettings["default_report_name"];
- }
-
- if (!String.IsNullOrEmpty(ConfigurationManager.AppSettings["default_publisher"]))
- {
- documenter.Publisher =
- Form1.DeterminePublisher(ConfigurationManager.AppSettings["default_publisher"]);
- }
-
- }
- }
-
- #endregion
-
- private static string GetSafeString(string source)
- {
- if (String.IsNullOrEmpty(source))
- return String.Empty;
- else
- {
- return source;
-
- }
- }
-
-
- private static ArrayList SplitStringToArrayList(string source, string delimiter)
- {
- return SplitStringToArrayList(source, delimiter, false);
- }
-
-
- private static ArrayList SplitStringToArrayList(string source, string delimiter, bool forceLowerCase)
- {
- string[] sourceArray = source.Split(delimiter.ToCharArray());
- ArrayList results = new ArrayList();
- for (int i = 0; i < sourceArray.Length; i++)
- {
- if (forceLowerCase)
- {
- results.Add(sourceArray[i].ToLower());
- }
- else
- {
- results.Add(sourceArray[i]);
- }
-
- }
-
- return results;
- }
-
- private static void ShowUsage()
- {
- Assembly a = Assembly.GetExecutingAssembly();
- StreamReader sr = new StreamReader(a.GetManifestResourceStream("Microsoft.Services.Tools.BiztalkDocumenter.Res.usage.txt"));
- string help = sr.ReadToEnd();
- sr.Close();
-
- MessageBox.Show(help, "Microsoft.Services.Tools.BiztalkDocumenter Usage");
- }
-
-
-
- #region AdvancedCheckedChanged
-
- private void AdvancedCheckedChanged(object sender, System.EventArgs e)
- {
- Cursor.Current = Cursors.WaitCursor;
- if (((RadioButton)sender).Checked == true)
- {
- this.clbApplications.Items.Clear();
-
- BizTalkInstallation bi = new BizTalkInstallation();
- bi.Server = this.txtServerName.Text;
- bi.MgmtDatabaseName = this.textBox1.Text;
-
- ArrayList applications = bi.GetApplicationNames();
-
- int appCount = applications.Count;
-
- if (appCount > 0)
- {
- clbApplications.Enabled = true;
- clbApplications.BackColor = SystemColors.Window;
-
- foreach (object o in applications)
- {
- this.clbApplications.Items.Add(o);
- }
- }
- else
- {
- this.clbApplications.Items.Add("No BizTalk Applications found, select 'Application Definition' to configure applications");
- }
- }
- else
- {
- clbApplications.BackColor = SystemColors.InactiveBorder;
- clbApplications.Enabled = false;
- clbApplications.Items.Clear();
- }
- Cursor.Current = Cursors.Default;
- return;
- }
-
- #endregion
-
- private void Documenter_PercentageDocumentationComplete(int percentage)
- {
- progressBar1.Value = percentage;
- }
-
- /// <summary>
- ///
- /// </summary>
- /// <param name="reportName"></param>
- /// <returns></returns>
- private bool ValidateReportName(string reportName)
- {
- if (reportName.IndexOfAny(new char[] { "\"".ToCharArray()[0], '/', '*', ':', '?', '"', '<', '>', '|' }) >= 0)
- {
- return false;
- }
- return true;
- }
-
- private void TvOrchsDoubleClick(object sender, System.EventArgs e)
- {
- DisplayOrchestration();
- }
-
- /// <summary>
- ///
- /// </summary>
- private void DisplayOrchestration()
- {
- try
- {
- if (this.tvOrchs.SelectedNode != null &&
- this.tvOrchs.SelectedNode.Tag != null)
- {
- string tagString = this.tvOrchs.SelectedNode.Tag as string;
- string[] nameParts = tagString.Split(new char[] { '|' }, 2);
- string asmName = nameParts[0];
- string orchName = nameParts[1];
-
- BizTalkInstallation bizTalkInstallation = new BizTalkInstallation();
- bizTalkInstallation.Server = this.txtServerName.Text;
- bizTalkInstallation.MgmtDatabaseName = this.textBox1.Text;
-
- Orchestration o = bizTalkInstallation.GetOrchestration(asmName, orchName);
- OrchestrationViewer ov = new OrchestrationViewer(o);
- ov.ShowDialog(this);
- }
- }
- catch (Exception ex)
- {
- MessageBox.Show("Error displaying orchestration: " + ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
- }
- }
-
- private void TvOrchsAfterCheck(object sender, System.Windows.Forms.TreeViewEventArgs e)
- {
- foreach (TreeNode tn in e.Node.Nodes)
- {
- tn.Checked = e.Node.Checked;
- }
- }
-
- private void IncludeRulesChecked(object sender, System.EventArgs e)
- {
- CheckBox cb = (CheckBox)sender;
- label7.Enabled = cb.Checked;
- label8.Enabled = cb.Checked;
- txtRulesDatabase.Enabled = cb.Checked;
- txtRulesServer.Enabled = cb.Checked;
- documenter.DocumentRules = cb.Checked;
- }
-
- private void btnBrowse2_Click(object sender, System.EventArgs e)
- {
- DialogResult res = this.folderBrowserDialog1.ShowDialog();
- if (res == DialogResult.OK)
- {
- this.txtResourceFolder.Text = this.folderBrowserDialog1.SelectedPath;
- }
- }
-
- private void ProviderSelectedIndexChanged(object sender, System.EventArgs e)
- {
- ComboBox cb = (ComboBox)sender;
-
- switch (cb.SelectedItem.ToString().ToLower())
- {
- case "compiled help":
- this.txtResourceFolder.Enabled = true;
- break;
-
- default:
- this.txtResourceFolder.Enabled = false;
- break;
- }
- return;
- }
-
- #region Link Buttons
-
- private void linkLabel7_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
- {
- DisplayOrchestration();
- }
-
- private void linkLabel13_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
- {
- Application.Exit();
- }
-
- private void linkLabel12_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
- {
- this.tabControl1.SelectedTab = tabPage1;
- }
-
- private void linkLabel3_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
- {
- this.tabControl1.SelectedTab = tabPage2;
- }
-
- private void linkLabel2_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
- {
- this.tabControl1.SelectedTab = tabPage3;
- }
-
- private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
- {
- this.tabControl1.SelectedTab = tabPage4;
- }
-
- private void linkLabel6_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
- {
- documenter.Server = this.txtServerName.Text;
- documenter.Database = this.textBox1.Text;
- documenter.OutputDir = txtOutputDir.Text;
- documenter.ReportName = this.txtReportTitle.Text;
- documenter.ShowOutput = this.cbShowOutput.Checked;
- documenter.RulesServer = this.txtRulesServer.Text;
- documenter.RulesDatabase = this.txtRulesDatabase.Text;
- documenter.DocumentRules = this.cbRulesConfig.Checked;
- documenter.ResourceFolder = this.txtResourceFolder.Text;
- documenter.ConfigFrameworkFileName = this.txtConfigFrameworkFile.Text;
- documenter.IncludeReferences = this.cbIncludeReferences.Checked;
- this.GenerateDocumentation();
- }
-
- #endregion
-
- private void linkLabel8_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
- {
- try
- {
- int numOrchsToSave = 0;
- foreach (TreeNode asmNode in this.tvOrchs.Nodes)
- {
- foreach (TreeNode tn in asmNode.Nodes)
- {
- if (tn.Checked && tn.Tag != null)
- {
- numOrchsToSave++;
- }
- }
- }
-
- if (numOrchsToSave > 0)
- {
- DialogResult res = this.folderBrowserDialog1.ShowDialog();
-
- if (res == DialogResult.OK)
- {
-
- Cursor.Current = Cursors.WaitCursor;
- progressBar1.Visible = true;
-
- string dirName = this.folderBrowserDialog1.SelectedPath;
-
- if (Directory.Exists(dirName))
- {
- BizTalkInstallation bizTalkInstallation = new BizTalkInstallation();
- bizTalkInstallation.Server = this.txtServerName.Text;
- bizTalkInstallation.MgmtDatabaseName = this.textBox1.Text;
-
- int counter = 0;
- foreach (TreeNode asmNode in this.tvOrchs.Nodes)
- {
- foreach (TreeNode tn in asmNode.Nodes)
- {
- if (tn.Checked && tn.Tag != null)
- {
- string tagString = tn.Tag as string;
- string[] nameParts = tagString.Split(new char[] { '|' }, 2);
- string asmName = nameParts[0];
- string orchName = nameParts[1];
-
- Orchestration o = bizTalkInstallation.GetOrchestration(asmName, orchName);
- //OrchestrationViewer ov = new OrchestrationViewer(o);
- //ov.ShowDialog(this);
-
- //Orchestration o = tn.Tag as Orchestration;
- string fileName = Path.Combine(dirName, o.Name + ".jpg");
- o.SaveAsImage(fileName);
- counter++;
- Documenter_PercentageDocumentationComplete(100 / numOrchsToSave * counter);
- }
- }
- }
- }
- }
- }
- }
- catch (Exception ex)
- {
- MessageBox.Show(ex.Message, "Error Listing Saving Orchestrations", MessageBoxButtons.OK, MessageBoxIcon.Error);
- }
- finally
- {
- progressBar1.Visible = false;
- Cursor.Current = Cursors.Default;
- }
- return;
- }
-
- /// <summary>
- /// List Orchestrations
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void linkLabel9_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
- {
- Cursor.Current = Cursors.WaitCursor;
- try
- {
- this.tvOrchs.Nodes.Clear();
- bizTalkInstallation = new BizTalkInstallation();
- bizTalkInstallation.Server = this.txtServerName.Text;
- bizTalkInstallation.MgmtDatabaseName = this.textBox1.Text;
-
- ArrayList names = bizTalkInstallation.GetOrchestrationNames();
- string asmName = string.Empty;
- string orchName = string.Empty;
- TreeNode asmNode = null;
-
- foreach (string orchAsmNameCombo in names)
- {
- string[] nameParts = orchAsmNameCombo.Split(new char[] { '|' }, 2);
- asmName = nameParts[0];
- orchName = nameParts[1];
-
- if (asmNode == null || asmName != asmNode.Text)
- {
- asmNode = new TreeNode(asmName, 0, 0);
- this.tvOrchs.Nodes.Add(asmNode);
- }
-
- TreeNode orchNode = new TreeNode(orchName, 1, 1);
- orchNode.Tag = orchAsmNameCombo;
- asmNode.Nodes.Add(orchNode);
- }
- }
- catch (Exception ex)
- {
- MessageBox.Show(ex.Message, "Error Listing Deployed Orchestrations", MessageBoxButtons.OK, MessageBoxIcon.Error);
- }
- finally
- {
- Cursor.Current = Cursors.Default;
- }
- }
-
- private void button2_Click(object sender, System.EventArgs e)
- {
- DialogResult res = dlgConfigFrameworkOpenFile.ShowDialog();
-
- if (res == DialogResult.OK)
- {
- txtConfigFrameworkFile.Text = dlgConfigFrameworkOpenFile.FileName;
- }
- }
-
- private void label18_Click(object sender, EventArgs e)
- {
-
- }
-
- private void Form1_Load(object sender, EventArgs e)
- {
- this.comboBox1.Items.
- AddRange(new object[] {
- "Compiled Help","Word 2003 Xml"});
- this.comboBox1.SelectedIndex = 0;
-
- }
-
- private void dlgConfigFrameworkOpenFile_FileOk(object sender, CancelEventArgs e)
- {
-
- }
-
- private void dlgConfigFrameworkSaveFile_FileOk(object sender, CancelEventArgs e)
- {
-
- }
-
- private void folderBrowserDialog1_HelpRequest(object sender, EventArgs e)
- {
-
- }
-
- private void label12_Click(object sender, EventArgs e)
- {
-
- }
-
- private void btnBrowseReportFileName_Click(object sender, EventArgs e)
- {
- dlgResultFileSave.ShowDialog();
- string resultFileName = dlgResultFileSave.FileName;
- txtOutputDir.Text = Path.GetDirectoryName(resultFileName);
- }
- }
- }