Click here to Skip to main content
15,885,914 members
Articles / Programming Languages / Forth.NET

DocMounter 2: A tool to build VS.NET documentation (now with Sandcastle)

,
Rate me:
Please Sign up or sign in to vote.
4.94/5 (29 votes)
15 Nov 2010GPL314 min read 138.4K   1.4K   99  
Tool for creating MS Visual Studio documentation files - XML Summaries, HxS/MSHC help solutions and manuals.
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Reflection;
using System.Windows.Forms;

namespace TenTec.Utils.Forms
{
	internal class ProjectProperties : System.Windows.Forms.Form
	{
		private Project fProject;

		#region Form controls

		private System.Windows.Forms.Label fLabelProjPath;
		private System.Windows.Forms.TreeView fTreeViewAssemblies;
		private System.Windows.Forms.Button fButtonOK;
		private System.Windows.Forms.Button fButtonCancel;
		private System.Windows.Forms.TextBox fTextBoxProjFile;
		private System.Windows.Forms.GroupBox fGroupBoxOut;
		private System.Windows.Forms.FolderBrowserDialog fFolderBrowserDialog;
		private System.Windows.Forms.TextBox fTextBoxDirHelpSolution;
		private System.Windows.Forms.Label fLabelHelpSolution;
		private System.Windows.Forms.Button fButtonSelectDirHelpSolution;
		private System.Windows.Forms.Label fLabelFeedbackEmail;
		private System.Windows.Forms.TextBox fTextBoxFeedbackEmail;
		private System.Windows.Forms.Label fLabelDocSetList;
		private System.Windows.Forms.TextBox fTextBoxDocSetList;
		private System.Windows.Forms.TextBox fTextBoxVersion;
		private System.Windows.Forms.Label fLabelVersion;
		private System.Windows.Forms.Button fButtonSelectDirMediaFolder;
		private System.Windows.Forms.GroupBox fGroupBoxAssemblies;
		private System.Windows.Forms.Button fButtonRemoveAssembly;
		private System.Windows.Forms.Button fButtonAddAssembly;
		private System.Windows.Forms.OpenFileDialog fOpenFileDialogAssembly;
		private System.Windows.Forms.Label fLabelManual;
		private System.Windows.Forms.Button fButtonSelectDirManual;
		private System.Windows.Forms.TextBox fTextBoxDirManual;
		private System.Windows.Forms.Label fLabelHelpNamespace;
		private System.Windows.Forms.TextBox fTextBoxHelpNamespace;
		private System.Windows.Forms.TextBox fTextBoxCompany;
		private TextBox fTextBoxCustomDictionary;
		private Label label1;
		private TabControl tabControl1;
		private TabPage tabPage1;
		private TabPage tabPage2;
		private TabPage tabPage3;
		private TabPage tabPage4;
		private GroupBox groupBox1;
		private TextBox fTextBoxDirMediaFolder;
		private Label fLabelMediaFolder;
		private Button fButtonSelectDirXmlComplete;
		private TextBox fTextBoxDirXmlComplete;
		private Label fLabelXmlComplete;
		private Button fButtonSelectDirXmlSummaries;
		private TextBox fTextBoxDirXmlSummaries;
		private Label fLabelXmlSummaries;
		private GroupBox groupBox4;
		private GroupBox groupBox3;
		private GroupBox groupBox2;
		private TextBox fTextBoxTitle;
		private Label fLabelTitle;
		private Label label2;
		private Label label4;
		private Label label3;
		private System.Windows.Forms.Label fLabelCompany;

		#endregion

		#region Open/Close functionality

		public ProjectProperties(Project proj)
		{
			if (proj == null)
				throw new ArgumentNullException("FormProjProps(proj)");
			InitializeComponent();

			fProject = proj;

			fTextBoxProjFile.Text = fProject.FullPathFileName;

			fTextBoxTitle.Text = proj.Title;
			fTextBoxCompany.Text = proj.Company;
			fTextBoxFeedbackEmail.Text = proj.FeedbackEmail;
			fTextBoxDocSetList.Text = proj.DocSetList;
			fTextBoxVersion.Text = proj.Version;
			fTextBoxDirMediaFolder.Text = proj.DirMedia;
			fTextBoxHelpNamespace.Text = proj.HelpNamespace;
			fTextBoxDirXmlSummaries.Text = proj.OutDirXmlSummaries;
			fTextBoxDirXmlComplete.Text = proj.OutDirXmlComplete;
			fTextBoxDirHelpSolution.Text = proj.OutDirHelpSolution;
			fTextBoxDirManual.Text = proj.OutDirManual;
			fTextBoxCustomDictionary.Text = proj.CustomDictionary;

			LoadAssemblyPaths();
		}

		private void FormProjProps_Closing(object sender, System.ComponentModel.CancelEventArgs e)
		{
			if (DialogResult == DialogResult.OK)
			{
				fProject.Title = fTextBoxTitle.Text;
				fProject.Company = fTextBoxCompany.Text;
				fProject.FeedbackEmail = fTextBoxFeedbackEmail.Text;
				fProject.DocSetList = fTextBoxDocSetList.Text;
				fProject.Version = fTextBoxVersion.Text;
				fProject.DirMedia = fTextBoxDirMediaFolder.Text;
				fProject.HelpNamespace = fTextBoxHelpNamespace.Text;
				fProject.OutDirXmlSummaries = fTextBoxDirXmlSummaries.Text;
				fProject.OutDirXmlComplete = fTextBoxDirXmlComplete.Text;
				fProject.OutDirHelpSolution = fTextBoxDirHelpSolution.Text;
				fProject.OutDirManual = fTextBoxDirManual.Text;
				fProject.CustomDictionary = fTextBoxCustomDictionary.Text;
				SaveAssemblyPaths();
			}
		}

		#endregion

		#region Windows Form Designer generated code
		private void InitializeComponent()
		{
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ProjectProperties));
			this.fLabelProjPath = new System.Windows.Forms.Label();
			this.fButtonOK = new System.Windows.Forms.Button();
			this.fButtonCancel = new System.Windows.Forms.Button();
			this.fTextBoxProjFile = new System.Windows.Forms.TextBox();
			this.fGroupBoxOut = new System.Windows.Forms.GroupBox();
			this.fButtonSelectDirXmlComplete = new System.Windows.Forms.Button();
			this.fTextBoxDirXmlComplete = new System.Windows.Forms.TextBox();
			this.fLabelXmlComplete = new System.Windows.Forms.Label();
			this.fButtonSelectDirXmlSummaries = new System.Windows.Forms.Button();
			this.fTextBoxDirXmlSummaries = new System.Windows.Forms.TextBox();
			this.fLabelXmlSummaries = new System.Windows.Forms.Label();
			this.fButtonSelectDirManual = new System.Windows.Forms.Button();
			this.fTextBoxDirManual = new System.Windows.Forms.TextBox();
			this.fLabelManual = new System.Windows.Forms.Label();
			this.fButtonSelectDirHelpSolution = new System.Windows.Forms.Button();
			this.fTextBoxDirHelpSolution = new System.Windows.Forms.TextBox();
			this.fLabelHelpSolution = new System.Windows.Forms.Label();
			this.fFolderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
			this.fTextBoxFeedbackEmail = new System.Windows.Forms.TextBox();
			this.fLabelFeedbackEmail = new System.Windows.Forms.Label();
			this.fTextBoxDocSetList = new System.Windows.Forms.TextBox();
			this.fLabelDocSetList = new System.Windows.Forms.Label();
			this.fTextBoxVersion = new System.Windows.Forms.TextBox();
			this.fLabelVersion = new System.Windows.Forms.Label();
			this.fButtonSelectDirMediaFolder = new System.Windows.Forms.Button();
			this.fButtonRemoveAssembly = new System.Windows.Forms.Button();
			this.fButtonAddAssembly = new System.Windows.Forms.Button();
			this.fGroupBoxAssemblies = new System.Windows.Forms.GroupBox();
			this.fTreeViewAssemblies = new System.Windows.Forms.TreeView();
			this.fOpenFileDialogAssembly = new System.Windows.Forms.OpenFileDialog();
			this.fTextBoxHelpNamespace = new System.Windows.Forms.TextBox();
			this.fLabelHelpNamespace = new System.Windows.Forms.Label();
			this.fTextBoxCompany = new System.Windows.Forms.TextBox();
			this.fLabelCompany = new System.Windows.Forms.Label();
			this.fTextBoxCustomDictionary = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.tabControl1 = new System.Windows.Forms.TabControl();
			this.tabPage1 = new System.Windows.Forms.TabPage();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.fTextBoxDirMediaFolder = new System.Windows.Forms.TextBox();
			this.fLabelMediaFolder = new System.Windows.Forms.Label();
			this.tabPage2 = new System.Windows.Forms.TabPage();
			this.groupBox4 = new System.Windows.Forms.GroupBox();
			this.label4 = new System.Windows.Forms.Label();
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.fTextBoxTitle = new System.Windows.Forms.TextBox();
			this.fLabelTitle = new System.Windows.Forms.Label();
			this.tabPage3 = new System.Windows.Forms.TabPage();
			this.label2 = new System.Windows.Forms.Label();
			this.tabPage4 = new System.Windows.Forms.TabPage();
			this.label3 = new System.Windows.Forms.Label();
			this.fGroupBoxOut.SuspendLayout();
			this.fGroupBoxAssemblies.SuspendLayout();
			this.tabControl1.SuspendLayout();
			this.tabPage1.SuspendLayout();
			this.groupBox1.SuspendLayout();
			this.tabPage2.SuspendLayout();
			this.groupBox4.SuspendLayout();
			this.groupBox3.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.tabPage3.SuspendLayout();
			this.tabPage4.SuspendLayout();
			this.SuspendLayout();
			// 
			// fLabelProjPath
			// 
			this.fLabelProjPath.AutoSize = true;
			this.fLabelProjPath.Location = new System.Drawing.Point(8, 10);
			this.fLabelProjPath.Name = "fLabelProjPath";
			this.fLabelProjPath.Size = new System.Drawing.Size(26, 13);
			this.fLabelProjPath.TabIndex = 0;
			this.fLabelProjPath.Text = "File:";
			// 
			// fButtonOK
			// 
			this.fButtonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.fButtonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.fButtonOK.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.fButtonOK.Location = new System.Drawing.Point(374, 442);
			this.fButtonOK.Name = "fButtonOK";
			this.fButtonOK.Size = new System.Drawing.Size(75, 23);
			this.fButtonOK.TabIndex = 19;
			this.fButtonOK.Text = "OK";
			// 
			// fButtonCancel
			// 
			this.fButtonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.fButtonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.fButtonCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.fButtonCancel.Location = new System.Drawing.Point(455, 442);
			this.fButtonCancel.Name = "fButtonCancel";
			this.fButtonCancel.Size = new System.Drawing.Size(75, 23);
			this.fButtonCancel.TabIndex = 20;
			this.fButtonCancel.Text = "Cancel";
			// 
			// fTextBoxProjFile
			// 
			this.fTextBoxProjFile.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.fTextBoxProjFile.Location = new System.Drawing.Point(40, 8);
			this.fTextBoxProjFile.Name = "fTextBoxProjFile";
			this.fTextBoxProjFile.ReadOnly = true;
			this.fTextBoxProjFile.Size = new System.Drawing.Size(490, 20);
			this.fTextBoxProjFile.TabIndex = 1;
			// 
			// fGroupBoxOut
			// 
			this.fGroupBoxOut.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.fGroupBoxOut.Controls.Add(this.fButtonSelectDirXmlComplete);
			this.fGroupBoxOut.Controls.Add(this.fTextBoxDirXmlComplete);
			this.fGroupBoxOut.Controls.Add(this.fLabelXmlComplete);
			this.fGroupBoxOut.Controls.Add(this.fButtonSelectDirXmlSummaries);
			this.fGroupBoxOut.Controls.Add(this.fTextBoxDirXmlSummaries);
			this.fGroupBoxOut.Controls.Add(this.fLabelXmlSummaries);
			this.fGroupBoxOut.Controls.Add(this.fButtonSelectDirManual);
			this.fGroupBoxOut.Controls.Add(this.fTextBoxDirManual);
			this.fGroupBoxOut.Controls.Add(this.fLabelManual);
			this.fGroupBoxOut.Controls.Add(this.fButtonSelectDirHelpSolution);
			this.fGroupBoxOut.Controls.Add(this.fTextBoxDirHelpSolution);
			this.fGroupBoxOut.Controls.Add(this.fLabelHelpSolution);
			this.fGroupBoxOut.Location = new System.Drawing.Point(6, 6);
			this.fGroupBoxOut.Name = "fGroupBoxOut";
			this.fGroupBoxOut.Size = new System.Drawing.Size(502, 136);
			this.fGroupBoxOut.TabIndex = 18;
			this.fGroupBoxOut.TabStop = false;
			this.fGroupBoxOut.Text = "Output";
			// 
			// fButtonSelectDirXmlComplete
			// 
			this.fButtonSelectDirXmlComplete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.fButtonSelectDirXmlComplete.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.fButtonSelectDirXmlComplete.Location = new System.Drawing.Point(466, 104);
			this.fButtonSelectDirXmlComplete.Name = "fButtonSelectDirXmlComplete";
			this.fButtonSelectDirXmlComplete.Size = new System.Drawing.Size(24, 20);
			this.fButtonSelectDirXmlComplete.TabIndex = 11;
			this.fButtonSelectDirXmlComplete.Text = "...";
			this.fButtonSelectDirXmlComplete.Click += new System.EventHandler(this.fButtonSelectDirXmlComplete_Click);
			// 
			// fTextBoxDirXmlComplete
			// 
			this.fTextBoxDirXmlComplete.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.fTextBoxDirXmlComplete.Location = new System.Drawing.Point(118, 103);
			this.fTextBoxDirXmlComplete.Name = "fTextBoxDirXmlComplete";
			this.fTextBoxDirXmlComplete.Size = new System.Drawing.Size(336, 20);
			this.fTextBoxDirXmlComplete.TabIndex = 10;
			// 
			// fLabelXmlComplete
			// 
			this.fLabelXmlComplete.AutoSize = true;
			this.fLabelXmlComplete.Location = new System.Drawing.Point(8, 105);
			this.fLabelXmlComplete.Name = "fLabelXmlComplete";
			this.fLabelXmlComplete.Size = new System.Drawing.Size(74, 13);
			this.fLabelXmlComplete.TabIndex = 9;
			this.fLabelXmlComplete.Text = "Complete Xml:";
			// 
			// fButtonSelectDirXmlSummaries
			// 
			this.fButtonSelectDirXmlSummaries.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.fButtonSelectDirXmlSummaries.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.fButtonSelectDirXmlSummaries.Location = new System.Drawing.Point(466, 75);
			this.fButtonSelectDirXmlSummaries.Name = "fButtonSelectDirXmlSummaries";
			this.fButtonSelectDirXmlSummaries.Size = new System.Drawing.Size(24, 20);
			this.fButtonSelectDirXmlSummaries.TabIndex = 8;
			this.fButtonSelectDirXmlSummaries.Text = "...";
			this.fButtonSelectDirXmlSummaries.Click += new System.EventHandler(this.fButtonSelectDirXmlSummaries_Click);
			// 
			// fTextBoxDirXmlSummaries
			// 
			this.fTextBoxDirXmlSummaries.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.fTextBoxDirXmlSummaries.Location = new System.Drawing.Point(118, 75);
			this.fTextBoxDirXmlSummaries.Name = "fTextBoxDirXmlSummaries";
			this.fTextBoxDirXmlSummaries.Size = new System.Drawing.Size(336, 20);
			this.fTextBoxDirXmlSummaries.TabIndex = 7;
			// 
			// fLabelXmlSummaries
			// 
			this.fLabelXmlSummaries.AutoSize = true;
			this.fLabelXmlSummaries.Location = new System.Drawing.Point(8, 77);
			this.fLabelXmlSummaries.Name = "fLabelXmlSummaries";
			this.fLabelXmlSummaries.Size = new System.Drawing.Size(103, 13);
			this.fLabelXmlSummaries.TabIndex = 6;
			this.fLabelXmlSummaries.Text = "Xml with Summaries:";
			// 
			// fButtonSelectDirManual
			// 
			this.fButtonSelectDirManual.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.fButtonSelectDirManual.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.fButtonSelectDirManual.Location = new System.Drawing.Point(466, 47);
			this.fButtonSelectDirManual.Name = "fButtonSelectDirManual";
			this.fButtonSelectDirManual.Size = new System.Drawing.Size(24, 20);
			this.fButtonSelectDirManual.TabIndex = 5;
			this.fButtonSelectDirManual.Text = "...";
			this.fButtonSelectDirManual.Click += new System.EventHandler(this.fButtonSelectDirManual_Click);
			// 
			// fTextBoxDirManual
			// 
			this.fTextBoxDirManual.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.fTextBoxDirManual.Location = new System.Drawing.Point(118, 47);
			this.fTextBoxDirManual.Name = "fTextBoxDirManual";
			this.fTextBoxDirManual.Size = new System.Drawing.Size(336, 20);
			this.fTextBoxDirManual.TabIndex = 4;
			// 
			// fLabelManual
			// 
			this.fLabelManual.AutoSize = true;
			this.fLabelManual.Location = new System.Drawing.Point(8, 49);
			this.fLabelManual.Name = "fLabelManual";
			this.fLabelManual.Size = new System.Drawing.Size(45, 13);
			this.fLabelManual.TabIndex = 3;
			this.fLabelManual.Text = "Manual:";
			// 
			// fButtonSelectDirHelpSolution
			// 
			this.fButtonSelectDirHelpSolution.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.fButtonSelectDirHelpSolution.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.fButtonSelectDirHelpSolution.Location = new System.Drawing.Point(466, 20);
			this.fButtonSelectDirHelpSolution.Name = "fButtonSelectDirHelpSolution";
			this.fButtonSelectDirHelpSolution.Size = new System.Drawing.Size(24, 20);
			this.fButtonSelectDirHelpSolution.TabIndex = 2;
			this.fButtonSelectDirHelpSolution.Text = "...";
			this.fButtonSelectDirHelpSolution.Click += new System.EventHandler(this.fButtonSelectDirHelpSolution_Click);
			// 
			// fTextBoxDirHelpSolution
			// 
			this.fTextBoxDirHelpSolution.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.fTextBoxDirHelpSolution.Location = new System.Drawing.Point(118, 19);
			this.fTextBoxDirHelpSolution.Name = "fTextBoxDirHelpSolution";
			this.fTextBoxDirHelpSolution.Size = new System.Drawing.Size(336, 20);
			this.fTextBoxDirHelpSolution.TabIndex = 1;
			// 
			// fLabelHelpSolution
			// 
			this.fLabelHelpSolution.AutoSize = true;
			this.fLabelHelpSolution.Location = new System.Drawing.Point(8, 21);
			this.fLabelHelpSolution.Name = "fLabelHelpSolution";
			this.fLabelHelpSolution.Size = new System.Drawing.Size(102, 13);
			this.fLabelHelpSolution.TabIndex = 0;
			this.fLabelHelpSolution.Text = "Help Solution (HxS):";
			// 
			// fFolderBrowserDialog
			// 
			this.fFolderBrowserDialog.Description = "Select an output directory";
			// 
			// fTextBoxFeedbackEmail
			// 
			this.fTextBoxFeedbackEmail.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.fTextBoxFeedbackEmail.Location = new System.Drawing.Point(132, 45);
			this.fTextBoxFeedbackEmail.Name = "fTextBoxFeedbackEmail";
			this.fTextBoxFeedbackEmail.Size = new System.Drawing.Size(359, 20);
			this.fTextBoxFeedbackEmail.TabIndex = 8;
			// 
			// fLabelFeedbackEmail
			// 
			this.fLabelFeedbackEmail.AutoSize = true;
			this.fLabelFeedbackEmail.Location = new System.Drawing.Point(6, 48);
			this.fLabelFeedbackEmail.Name = "fLabelFeedbackEmail";
			this.fLabelFeedbackEmail.Size = new System.Drawing.Size(86, 13);
			this.fLabelFeedbackEmail.TabIndex = 7;
			this.fLabelFeedbackEmail.Text = "Feedback Email:";
			// 
			// fTextBoxDocSetList
			// 
			this.fTextBoxDocSetList.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.fTextBoxDocSetList.Location = new System.Drawing.Point(132, 19);
			this.fTextBoxDocSetList.Name = "fTextBoxDocSetList";
			this.fTextBoxDocSetList.Size = new System.Drawing.Size(357, 20);
			this.fTextBoxDocSetList.TabIndex = 10;
			// 
			// fLabelDocSetList
			// 
			this.fLabelDocSetList.AutoSize = true;
			this.fLabelDocSetList.Location = new System.Drawing.Point(8, 22);
			this.fLabelDocSetList.Name = "fLabelDocSetList";
			this.fLabelDocSetList.Size = new System.Drawing.Size(106, 13);
			this.fLabelDocSetList.TabIndex = 9;
			this.fLabelDocSetList.Text = "MSHelp DocSet List:";
			// 
			// fTextBoxVersion
			// 
			this.fTextBoxVersion.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.fTextBoxVersion.Location = new System.Drawing.Point(132, 71);
			this.fTextBoxVersion.Name = "fTextBoxVersion";
			this.fTextBoxVersion.Size = new System.Drawing.Size(359, 20);
			this.fTextBoxVersion.TabIndex = 12;
			// 
			// fLabelVersion
			// 
			this.fLabelVersion.AutoSize = true;
			this.fLabelVersion.Location = new System.Drawing.Point(6, 74);
			this.fLabelVersion.Name = "fLabelVersion";
			this.fLabelVersion.Size = new System.Drawing.Size(120, 13);
			this.fLabelVersion.TabIndex = 11;
			this.fLabelVersion.Text = "Documentation Version:";
			// 
			// fButtonSelectDirMediaFolder
			// 
			this.fButtonSelectDirMediaFolder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.fButtonSelectDirMediaFolder.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.fButtonSelectDirMediaFolder.Location = new System.Drawing.Point(466, 17);
			this.fButtonSelectDirMediaFolder.Name = "fButtonSelectDirMediaFolder";
			this.fButtonSelectDirMediaFolder.Size = new System.Drawing.Size(24, 20);
			this.fButtonSelectDirMediaFolder.TabIndex = 2;
			this.fButtonSelectDirMediaFolder.Text = "...";
			this.fButtonSelectDirMediaFolder.Click += new System.EventHandler(this.fButtonSelectDirMediaFolder_Click);
			// 
			// fButtonRemoveAssembly
			// 
			this.fButtonRemoveAssembly.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.fButtonRemoveAssembly.Enabled = false;
			this.fButtonRemoveAssembly.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.fButtonRemoveAssembly.Location = new System.Drawing.Point(437, 47);
			this.fButtonRemoveAssembly.Name = "fButtonRemoveAssembly";
			this.fButtonRemoveAssembly.Size = new System.Drawing.Size(75, 23);
			this.fButtonRemoveAssembly.TabIndex = 2;
			this.fButtonRemoveAssembly.Text = "Remove";
			this.fButtonRemoveAssembly.Click += new System.EventHandler(this.fButtonRemoveAssembly_Click);
			// 
			// fButtonAddAssembly
			// 
			this.fButtonAddAssembly.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.fButtonAddAssembly.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.fButtonAddAssembly.Location = new System.Drawing.Point(437, 16);
			this.fButtonAddAssembly.Name = "fButtonAddAssembly";
			this.fButtonAddAssembly.Size = new System.Drawing.Size(75, 23);
			this.fButtonAddAssembly.TabIndex = 1;
			this.fButtonAddAssembly.Text = "Add";
			this.fButtonAddAssembly.Click += new System.EventHandler(this.fButtonAddAssembly_Click);
			// 
			// fGroupBoxAssemblies
			// 
			this.fGroupBoxAssemblies.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.fGroupBoxAssemblies.Controls.Add(this.fTreeViewAssemblies);
			this.fGroupBoxAssemblies.Controls.Add(this.fButtonAddAssembly);
			this.fGroupBoxAssemblies.Controls.Add(this.fButtonRemoveAssembly);
			this.fGroupBoxAssemblies.Location = new System.Drawing.Point(8, 34);
			this.fGroupBoxAssemblies.Name = "fGroupBoxAssemblies";
			this.fGroupBoxAssemblies.Size = new System.Drawing.Size(522, 102);
			this.fGroupBoxAssemblies.TabIndex = 2;
			this.fGroupBoxAssemblies.TabStop = false;
			this.fGroupBoxAssemblies.Text = "Assemblies";
			// 
			// fTreeViewAssemblies
			// 
			this.fTreeViewAssemblies.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
									| System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.fTreeViewAssemblies.FullRowSelect = true;
			this.fTreeViewAssemblies.HideSelection = false;
			this.fTreeViewAssemblies.Location = new System.Drawing.Point(8, 16);
			this.fTreeViewAssemblies.Name = "fTreeViewAssemblies";
			this.fTreeViewAssemblies.ShowLines = false;
			this.fTreeViewAssemblies.ShowPlusMinus = false;
			this.fTreeViewAssemblies.Size = new System.Drawing.Size(420, 78);
			this.fTreeViewAssemblies.TabIndex = 0;
			this.fTreeViewAssemblies.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.fTreeViewAssemblies_AfterSelect);
			// 
			// fOpenFileDialogAssembly
			// 
			this.fOpenFileDialogAssembly.Filter = "Assembly|*.dll; *.exe";
			this.fOpenFileDialogAssembly.Title = "Open Assembly";
			// 
			// fTextBoxHelpNamespace
			// 
			this.fTextBoxHelpNamespace.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.fTextBoxHelpNamespace.Location = new System.Drawing.Point(100, 8);
			this.fTextBoxHelpNamespace.Name = "fTextBoxHelpNamespace";
			this.fTextBoxHelpNamespace.Size = new System.Drawing.Size(408, 20);
			this.fTextBoxHelpNamespace.TabIndex = 17;
			// 
			// fLabelHelpNamespace
			// 
			this.fLabelHelpNamespace.AutoSize = true;
			this.fLabelHelpNamespace.Location = new System.Drawing.Point(6, 11);
			this.fLabelHelpNamespace.Name = "fLabelHelpNamespace";
			this.fLabelHelpNamespace.Size = new System.Drawing.Size(92, 13);
			this.fLabelHelpNamespace.TabIndex = 16;
			this.fLabelHelpNamespace.Text = "Help Namespace:";
			// 
			// fTextBoxCompany
			// 
			this.fTextBoxCompany.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.fTextBoxCompany.Location = new System.Drawing.Point(132, 19);
			this.fTextBoxCompany.Name = "fTextBoxCompany";
			this.fTextBoxCompany.Size = new System.Drawing.Size(359, 20);
			this.fTextBoxCompany.TabIndex = 6;
			// 
			// fLabelCompany
			// 
			this.fLabelCompany.AutoSize = true;
			this.fLabelCompany.Location = new System.Drawing.Point(6, 22);
			this.fLabelCompany.Name = "fLabelCompany";
			this.fLabelCompany.Size = new System.Drawing.Size(54, 13);
			this.fLabelCompany.TabIndex = 5;
			this.fLabelCompany.Text = "Company:";
			// 
			// fTextBoxCustomDictionary
			// 
			this.fTextBoxCustomDictionary.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
									| System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.fTextBoxCustomDictionary.Location = new System.Drawing.Point(105, 8);
			this.fTextBoxCustomDictionary.Multiline = true;
			this.fTextBoxCustomDictionary.Name = "fTextBoxCustomDictionary";
			this.fTextBoxCustomDictionary.ScrollBars = System.Windows.Forms.ScrollBars.Both;
			this.fTextBoxCustomDictionary.Size = new System.Drawing.Size(265, 240);
			this.fTextBoxCustomDictionary.TabIndex = 23;
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(6, 11);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(103, 16);
			this.label1.TabIndex = 22;
			this.label1.Text = "Custom Dictionary:";
			// 
			// tabControl1
			// 
			this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
									| System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			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(8, 151);
			this.tabControl1.Name = "tabControl1";
			this.tabControl1.SelectedIndex = 0;
			this.tabControl1.Size = new System.Drawing.Size(522, 281);
			this.tabControl1.TabIndex = 3;
			// 
			// tabPage1
			// 
			this.tabPage1.Controls.Add(this.groupBox1);
			this.tabPage1.Controls.Add(this.fGroupBoxOut);
			this.tabPage1.Location = new System.Drawing.Point(4, 22);
			this.tabPage1.Name = "tabPage1";
			this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
			this.tabPage1.Size = new System.Drawing.Size(514, 255);
			this.tabPage1.TabIndex = 0;
			this.tabPage1.Text = "Folders";
			this.tabPage1.UseVisualStyleBackColor = true;
			// 
			// groupBox1
			// 
			this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.groupBox1.Controls.Add(this.fTextBoxDirMediaFolder);
			this.groupBox1.Controls.Add(this.fLabelMediaFolder);
			this.groupBox1.Controls.Add(this.fButtonSelectDirMediaFolder);
			this.groupBox1.Location = new System.Drawing.Point(6, 148);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(502, 47);
			this.groupBox1.TabIndex = 19;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "Source Files";
			// 
			// fTextBoxDirMediaFolder
			// 
			this.fTextBoxDirMediaFolder.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.fTextBoxDirMediaFolder.Location = new System.Drawing.Point(118, 17);
			this.fTextBoxDirMediaFolder.Name = "fTextBoxDirMediaFolder";
			this.fTextBoxDirMediaFolder.Size = new System.Drawing.Size(336, 20);
			this.fTextBoxDirMediaFolder.TabIndex = 1;
			// 
			// fLabelMediaFolder
			// 
			this.fLabelMediaFolder.AutoSize = true;
			this.fLabelMediaFolder.Location = new System.Drawing.Point(8, 20);
			this.fLabelMediaFolder.Name = "fLabelMediaFolder";
			this.fLabelMediaFolder.Size = new System.Drawing.Size(102, 13);
			this.fLabelMediaFolder.TabIndex = 0;
			this.fLabelMediaFolder.Text = "Media (images, etc):";
			// 
			// tabPage2
			// 
			this.tabPage2.Controls.Add(this.groupBox4);
			this.tabPage2.Controls.Add(this.groupBox3);
			this.tabPage2.Controls.Add(this.groupBox2);
			this.tabPage2.Location = new System.Drawing.Point(4, 22);
			this.tabPage2.Name = "tabPage2";
			this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
			this.tabPage2.Size = new System.Drawing.Size(514, 255);
			this.tabPage2.TabIndex = 1;
			this.tabPage2.Text = "Topic Contents";
			this.tabPage2.UseVisualStyleBackColor = true;
			// 
			// groupBox4
			// 
			this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
									| System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.groupBox4.Controls.Add(this.label4);
			this.groupBox4.Controls.Add(this.fLabelDocSetList);
			this.groupBox4.Controls.Add(this.fTextBoxDocSetList);
			this.groupBox4.Location = new System.Drawing.Point(6, 170);
			this.groupBox4.Name = "groupBox4";
			this.groupBox4.Size = new System.Drawing.Size(501, 78);
			this.groupBox4.TabIndex = 15;
			this.groupBox4.TabStop = false;
			this.groupBox4.Text = "Internal Attributes";
			// 
			// label4
			// 
			this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
									| System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.label4.Location = new System.Drawing.Point(132, 42);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(359, 31);
			this.label4.TabIndex = 11;
			this.label4.Text = "Will be the values of the <MSHelp:Attr> tag used to implement filters. Separate t" +
					"he values by comma.";
			// 
			// groupBox3
			// 
			this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.groupBox3.Controls.Add(this.fLabelCompany);
			this.groupBox3.Controls.Add(this.fLabelVersion);
			this.groupBox3.Controls.Add(this.fTextBoxCompany);
			this.groupBox3.Controls.Add(this.fTextBoxVersion);
			this.groupBox3.Controls.Add(this.fLabelFeedbackEmail);
			this.groupBox3.Controls.Add(this.fTextBoxFeedbackEmail);
			this.groupBox3.Location = new System.Drawing.Point(6, 62);
			this.groupBox3.Name = "groupBox3";
			this.groupBox3.Size = new System.Drawing.Size(501, 102);
			this.groupBox3.TabIndex = 14;
			this.groupBox3.TabStop = false;
			this.groupBox3.Text = "Footer";
			// 
			// groupBox2
			// 
			this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.groupBox2.Controls.Add(this.fTextBoxTitle);
			this.groupBox2.Controls.Add(this.fLabelTitle);
			this.groupBox2.Location = new System.Drawing.Point(6, 7);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(501, 49);
			this.groupBox2.TabIndex = 13;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "Header";
			// 
			// fTextBoxTitle
			// 
			this.fTextBoxTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.fTextBoxTitle.Location = new System.Drawing.Point(132, 19);
			this.fTextBoxTitle.Name = "fTextBoxTitle";
			this.fTextBoxTitle.Size = new System.Drawing.Size(363, 20);
			this.fTextBoxTitle.TabIndex = 4;
			// 
			// fLabelTitle
			// 
			this.fLabelTitle.AutoSize = true;
			this.fLabelTitle.Location = new System.Drawing.Point(6, 22);
			this.fLabelTitle.Name = "fLabelTitle";
			this.fLabelTitle.Size = new System.Drawing.Size(30, 13);
			this.fLabelTitle.TabIndex = 3;
			this.fLabelTitle.Text = "Title:";
			// 
			// tabPage3
			// 
			this.tabPage3.Controls.Add(this.label2);
			this.tabPage3.Controls.Add(this.fTextBoxCustomDictionary);
			this.tabPage3.Controls.Add(this.label1);
			this.tabPage3.Location = new System.Drawing.Point(4, 22);
			this.tabPage3.Name = "tabPage3";
			this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
			this.tabPage3.Size = new System.Drawing.Size(514, 255);
			this.tabPage3.TabIndex = 2;
			this.tabPage3.Text = "Spell Check";
			this.tabPage3.UseVisualStyleBackColor = true;
			// 
			// label2
			// 
			this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.label2.Location = new System.Drawing.Point(376, 11);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(132, 237);
			this.label2.TabIndex = 24;
			this.label2.Text = "Words to exclude from the spell check process. One word per line.";
			// 
			// tabPage4
			// 
			this.tabPage4.Controls.Add(this.label3);
			this.tabPage4.Controls.Add(this.fTextBoxHelpNamespace);
			this.tabPage4.Controls.Add(this.fLabelHelpNamespace);
			this.tabPage4.Location = new System.Drawing.Point(4, 22);
			this.tabPage4.Name = "tabPage4";
			this.tabPage4.Padding = new System.Windows.Forms.Padding(3);
			this.tabPage4.Size = new System.Drawing.Size(514, 255);
			this.tabPage4.TabIndex = 3;
			this.tabPage4.Text = "Viewing HxS";
			this.tabPage4.UseVisualStyleBackColor = true;
			// 
			// label3
			// 
			this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
									| System.Windows.Forms.AnchorStyles.Left)
									| System.Windows.Forms.AnchorStyles.Right)));
			this.label3.Location = new System.Drawing.Point(100, 31);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(408, 221);
			this.label3.TabIndex = 18;
			this.label3.Text = "This namespace is used to register the result HxS file in the help collection to " +
					"view it in the MS Document Explorer. Leave it empty to use the default DocMounte" +
					"r namespace.";
			// 
			// ProjectProperties
			// 
			this.AcceptButton = this.fButtonOK;
			this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
			this.CancelButton = this.fButtonCancel;
			this.ClientSize = new System.Drawing.Size(538, 474);
			this.Controls.Add(this.tabControl1);
			this.Controls.Add(this.fGroupBoxAssemblies);
			this.Controls.Add(this.fTextBoxProjFile);
			this.Controls.Add(this.fButtonCancel);
			this.Controls.Add(this.fButtonOK);
			this.Controls.Add(this.fLabelProjPath);
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.MinimizeBox = false;
			this.MinimumSize = new System.Drawing.Size(400, 465);
			this.Name = "ProjectProperties";
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
			this.Text = "Project Properties";
			this.Closing += new System.ComponentModel.CancelEventHandler(this.FormProjProps_Closing);
			this.fGroupBoxOut.ResumeLayout(false);
			this.fGroupBoxOut.PerformLayout();
			this.fGroupBoxAssemblies.ResumeLayout(false);
			this.tabControl1.ResumeLayout(false);
			this.tabPage1.ResumeLayout(false);
			this.groupBox1.ResumeLayout(false);
			this.groupBox1.PerformLayout();
			this.tabPage2.ResumeLayout(false);
			this.groupBox4.ResumeLayout(false);
			this.groupBox4.PerformLayout();
			this.groupBox3.ResumeLayout(false);
			this.groupBox3.PerformLayout();
			this.groupBox2.ResumeLayout(false);
			this.groupBox2.PerformLayout();
			this.tabPage3.ResumeLayout(false);
			this.tabPage3.PerformLayout();
			this.tabPage4.ResumeLayout(false);
			this.tabPage4.PerformLayout();
			this.ResumeLayout(false);
			this.PerformLayout();

		}

		#endregion

		#region Folder Path Select Buttons

		private void SelectDir(TextBox textBoxDir, string dialogTitle)
		{
			if (!String.IsNullOrWhiteSpace(textBoxDir.Text))
				fFolderBrowserDialog.SelectedPath = fProject.GetDirAsAbsolutePath(textBoxDir.Text);
			else if (fProject.FullPathFileName != null)
				fFolderBrowserDialog.SelectedPath = Path.GetDirectoryName(fProject.FullPathFileName);

			fFolderBrowserDialog.Description = dialogTitle;

			if (fFolderBrowserDialog.ShowDialog(this) == DialogResult.OK)
				textBoxDir.Text = fFolderBrowserDialog.SelectedPath;
		}

		private void fButtonSelectDirHelpSolution_Click(object sender, System.EventArgs e)
		{
			SelectDir(fTextBoxDirHelpSolution, "Select the help solution output folder.");
		}

		private void fButtonSelectDirManual_Click(object sender, System.EventArgs e)
		{
			SelectDir(fTextBoxDirManual, "Select the manual output folder.");
		}

		private void fButtonSelectDirXmlSummaries_Click(object sender, System.EventArgs e)
		{
			SelectDir(fTextBoxDirXmlSummaries, "Select the Xml summaries output folder.");
		}

		private void fButtonSelectDirXmlComplete_Click(object sender, System.EventArgs e)
		{
			SelectDir(fTextBoxDirXmlComplete, "Select the complete Xml output folder.");
		}

		private void fButtonSelectDirMediaFolder_Click(object sender, System.EventArgs e)
		{
			SelectDir(fTextBoxDirMediaFolder, "Select the media folder.");
		}

		#endregion

		#region Assemblies

		private void fTreeViewAssemblies_AfterSelect(object sender, TreeViewEventArgs e)
		{
			AdjustRemoveAssemblyButton();
		}

		private void fButtonAddAssembly_Click(object sender, System.EventArgs e)
		{
			if (fOpenFileDialogAssembly.ShowDialog(this) == DialogResult.OK)
			{
				try
				{
					AssemblyName.GetAssemblyName(fOpenFileDialogAssembly.FileName);
					TreeNode myNode = fTreeViewAssemblies.Nodes.Add(fOpenFileDialogAssembly.FileName);
					fTreeViewAssemblies.SelectedNode = myNode;
				}
				catch
				{
					MessagesManager.ShowError(this, "Invalid Assembly.");
				}
				AdjustRemoveAssemblyButton();
			}
		}

		private void fButtonRemoveAssembly_Click(object sender, System.EventArgs e)
		{
			if (fTreeViewAssemblies.SelectedNode == null)
				return;

			int mySelectedIndex = fTreeViewAssemblies.SelectedNode.Index;
			fTreeViewAssemblies.Nodes.RemoveAt(mySelectedIndex);
			if (mySelectedIndex < fTreeViewAssemblies.Nodes.Count)
				fTreeViewAssemblies.SelectedNode = fTreeViewAssemblies.Nodes[mySelectedIndex];
			else if (mySelectedIndex >= 0)
				fTreeViewAssemblies.SelectedNode = fTreeViewAssemblies.Nodes[mySelectedIndex - 1];

			AdjustRemoveAssemblyButton();
		}

		private void AdjustRemoveAssemblyButton()
		{
			if (fTreeViewAssemblies.SelectedNode != null && fTreeViewAssemblies.Nodes.Count > 1)
				fButtonRemoveAssembly.Enabled = true;
			else
				fButtonRemoveAssembly.Enabled = false;
		}

		private void LoadAssemblyPaths()
		{
			foreach (string myPath in fProject.LibPaths)
				fTreeViewAssemblies.Nodes.Add(myPath);
		}

		private void SaveAssemblyPaths()
		{
			string[] myPaths = new string[fTreeViewAssemblies.Nodes.Count];
			for (int myIndex = 0; myIndex < fTreeViewAssemblies.Nodes.Count; myIndex++)
				myPaths[myIndex] = fTreeViewAssemblies.Nodes[myIndex].Text;

			fProject.LibPaths = myPaths;
		}

		#endregion
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Software Developer (Senior)
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Written By
Ukraine Ukraine
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
This is a Organisation

2 members

Comments and Discussions