using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using System.Xml;
using System.Xml.Serialization;
using QC.CompareTestTree;

namespace QSPRTreeCompare;

public class frmCompare : Form
{
	private const string STYLESHEET_NAME = "QSPRTreeDelta.xsl";

	private const string QSPR_DATA_PATH = "C:\\QUALCOMM\\QSPR\\Temp";

	private const string TEMP_RESULT_FILENAME = "result.xml";

	private const string TEST_TREE_DIALOG_FILTER = "QSPR Compressed xtt files (*.cxtt)|*.cxtt|QSPR xtt files (*.xtt)|*.xtt|All files (*.*)|*.*";

	private const string COMPRESSED_TREE_FILE_EXTENSION = ".cxtt";

	private string baseFile;

	private string modifiedFile;

	private string reportPath;

	private string tempResultFilePath;

	private string TEMP_DECOMPRESS_TREE_FILE_TEMPLATE_NAME = Application.UserAppDataPath + "\\tmp_DecompressTree_";

	private IContainer components;

	private GroupBox groupBox1;

	private PictureBox pictureBox1;

	private TextBox txtOldPath;

	private TextBox txtNewPath;

	private Button btnOpenFile1;

	private Button btnOpenFile2;

	private Button btnRunCompare;

	private Button xpBtnOpenIE;

	private Button btnSaveResults;

	private StatusBar fileCompareStatus;

	private OpenFileDialog dlgOpenXML;

	private SaveFileDialog dlgSaveFile;

	private GroupBox groupOriginalFile;

	private GroupBox groupUpdatedFile;

	private Button btnAbout;

	private CheckBox chkXLSSource;

	private Label label1;

	private WebBrowser wbBrowse;

	private GroupBox groupBox2;

	public string BaseFile
	{
		get
		{
			return baseFile;
		}
		set
		{
			baseFile = value;
		}
	}

	public string ModifiedFile
	{
		get
		{
			return modifiedFile;
		}
		set
		{
			modifiedFile = value;
		}
	}

	public string ReportPath
	{
		get
		{
			return reportPath;
		}
		set
		{
			reportPath = value;
		}
	}

	public frmCompare()
	{
		InitializeComponent();
		tempResultFilePath = Path.Combine("C:\\QUALCOMM\\QSPR\\Temp", "result.xml");
		if (!Directory.Exists("C:\\QUALCOMM\\QSPR\\Temp"))
		{
			Directory.CreateDirectory("C:\\QUALCOMM\\QSPR\\Temp");
		}
		wbBrowse.DocumentCompleted += wbBrowse_DocumentCompleted;
	}

	private void CreateXmlDoc(out XmlDocument xmlDoc, out XmlNode xmlSerializeElt)
	{
		xmlDoc = new XmlDocument();
		XmlNode newChild = xmlDoc.CreateNode(XmlNodeType.XmlDeclaration, "", "");
		xmlDoc.AppendChild(newChild);
		string data = ((!chkXLSSource.Checked) ? "type='text/xsl' href='\\\\qtm\\QTMWeb\\XSLT\\QSPRTreeDelta.xsl'" : ("type='text/xsl' href='" + Application.StartupPath.ToString() + "\\..\\QSPRStyleSheets\\QSPRTreeDelta.xsl'"));
		xmlDoc.AppendChild(xmlDoc.CreateProcessingInstruction("xml-stylesheet", data));
		XmlNode xmlNode = xmlDoc.CreateNode(XmlNodeType.Element, "rootnode", "");
		xmlDoc.AppendChild(xmlNode);
		xmlSerializeElt = xmlDoc.CreateNode(XmlNodeType.Element, "SerializeComponents", "");
		xmlNode.AppendChild(xmlSerializeElt);
	}

	private void LoadTree(string filename, out SerializeComponents tree)
	{
		FileStream fileStream = null;
		if (filename.ToLower().EndsWith(".cxtt"))
		{
			string text = TEMP_DECOMPRESS_TREE_FILE_TEMPLATE_NAME + Path.GetFileNameWithoutExtension(filename) + ".cxtt";
			FileCompressionUtility.DecompressFile(filename, text);
			filename = text;
		}
		fileStream = new FileStream(filename, FileMode.Open, FileAccess.Read);
		try
		{
			XmlSerializer xmlSerializer = new XmlSerializer(typeof(SerializeComponents));
			tree = (SerializeComponents)xmlSerializer.Deserialize(fileStream);
		}
		catch (Exception ex)
		{
			throw new Exception(ex.Message, ex);
		}
		finally
		{
			fileStream.Close();
		}
	}

	private void ParseTree(SerializeComponents baseTree, SerializeComponents modifiedTree, ref XmlDocument xmlDoc, ref XmlNode parentNode)
	{
		XmlElement parentNode2 = xmlDoc.CreateElement("theRootTest");
		parentNode2.SetAttribute("NodeType", "Root");
		RootTest theRootTest = modifiedTree.theRootTest;
		RootTest theRootTest2 = baseTree.theRootTest;
		RootTestProperties rootProperties = theRootTest2.RootProperties;
		RootTestProperties rootProperties2 = theRootTest.RootProperties;
		ThePlugInConfig thePlugInConfig = modifiedTree.thePlugInConfig;
		ThePlugInConfig thePlugInConfig2 = baseTree.thePlugInConfig;
		WConfig wConfig = modifiedTree.WConfig;
		WConfig wConfig2 = baseTree.WConfig;
		TheRegistry theRegistry = modifiedTree.theRegistry;
		TheRegistry theRegistry2 = baseTree.theRegistry;
		rootProperties2.CompareProperties("RootProperties", rootProperties, null, ref xmlDoc, ref parentNode2);
		FolderTest baseFolder = theRootTest2;
		FolderTest modifiedFolder = theRootTest;
		if (theRootTest2.TestList.Count > 0 && theRootTest2.TestList.Count == 1 && ((FolderTest)theRootTest2.TestList[0]).FolderProperties.TestName == theRootTest2.Properties.TestName)
		{
			baseFolder = (FolderTest)theRootTest2.TestList[0];
		}
		if (theRootTest.TestList.Count > 0 && theRootTest.TestList.Count == 1 && ((FolderTest)theRootTest.TestList[0]).FolderProperties.TestName == theRootTest.Properties.TestName)
		{
			modifiedFolder = (FolderTest)theRootTest.TestList[0];
		}
		theRootTest2.CompareFolders(modifiedFolder, baseFolder, null, ref xmlDoc, ref parentNode2);
		parentNode.AppendChild(parentNode2);
		if (thePlugInConfig2 != null && thePlugInConfig != null)
		{
			parentNode2 = xmlDoc.CreateElement("thePlugInConfig");
			thePlugInConfig2.ComparePlugInConfig(thePlugInConfig, thePlugInConfig2, null, ref xmlDoc, ref parentNode2);
			parentNode.AppendChild(parentNode2);
		}
		else if (thePlugInConfig2 != null && thePlugInConfig == null)
		{
			parentNode2 = xmlDoc.CreateElement("thePlugInConfig");
			thePlugInConfig2.ComparePlugInConfig(thePlugInConfig2, thePlugInConfig2, "Remove", ref xmlDoc, ref parentNode2);
			parentNode.AppendChild(parentNode2);
		}
		else if (thePlugInConfig2 == null && thePlugInConfig != null)
		{
			parentNode2 = xmlDoc.CreateElement("thePlugInConfig");
			thePlugInConfig2.ComparePlugInConfig(thePlugInConfig, thePlugInConfig, "Add", ref xmlDoc, ref parentNode2);
			parentNode.AppendChild(parentNode2);
		}
		if (wConfig2 != null && wConfig != null)
		{
			parentNode2 = xmlDoc.CreateElement("WConfig");
			wConfig2.CompareWConfig(wConfig, wConfig2, null, ref xmlDoc, ref parentNode2);
			parentNode.AppendChild(parentNode2);
		}
		else if (wConfig2 != null && wConfig == null)
		{
			parentNode2 = xmlDoc.CreateElement("WConfig");
			wConfig2.CompareWConfig(wConfig2, wConfig2, "Remove", ref xmlDoc, ref parentNode2);
			parentNode.AppendChild(parentNode2);
		}
		else if (wConfig2 == null && wConfig != null)
		{
			parentNode2 = xmlDoc.CreateElement("WConfig");
			wConfig2.CompareWConfig(wConfig, wConfig, "Add", ref xmlDoc, ref parentNode2);
			parentNode.AppendChild(parentNode2);
		}
		if (theRegistry2 != null && theRegistry != null)
		{
			parentNode2 = xmlDoc.CreateElement("theRegistry");
			theRegistry2.CompareRegistry(theRegistry, theRegistry2, null, ref xmlDoc, ref parentNode2);
			parentNode.AppendChild(parentNode2);
		}
		else if (theRegistry2 != null && theRegistry == null)
		{
			parentNode2 = xmlDoc.CreateElement("theRegistry");
			theRegistry2.CompareRegistry(theRegistry2, theRegistry2, "Remove", ref xmlDoc, ref parentNode2);
			parentNode.AppendChild(parentNode2);
		}
		else if (theRegistry2 == null && theRegistry != null)
		{
			parentNode2 = xmlDoc.CreateElement("theRegistry");
			theRegistry2.CompareRegistry(theRegistry, theRegistry, "Add", ref xmlDoc, ref parentNode2);
			parentNode.AppendChild(parentNode2);
		}
		fileCompareStatus.Text = "Calculating the statistics..";
		parentNode2 = xmlDoc.CreateElement("Statistics");
		Statistics.GlobalStatistic(ref xmlDoc, ref parentNode2);
		parentNode.AppendChild(parentNode2);
	}

	public static void IEOpenOnURL(string sURL)
	{
		try
		{
			Process process = new Process();
			process.StartInfo.UseShellExecute = true;
			process.StartInfo.FileName = GetIEPath();
			process.StartInfo.Arguments = sURL;
			process.Start();
		}
		catch (Exception ex)
		{
			MessageBox.Show("Unable to launch internet explorer " + ex.Message);
		}
	}

	private static string GetIEPath()
	{
		string path = "Internet Explorer\\iexplore.exe";
		string path2 = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles);
		if (Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE").ToLower() == "amd64")
		{
			path2 = Environment.GetEnvironmentVariable("ProgramFiles(x86)");
		}
		return Path.Combine(path2, path);
	}

	private void btnOpenFile1_Click(object sender, EventArgs e)
	{
		dlgOpenXML.CheckPathExists = true;
		dlgOpenXML.ValidateNames = true;
		dlgOpenXML.RestoreDirectory = true;
		dlgOpenXML.CheckFileExists = true;
		dlgOpenXML.FileName = "";
		dlgOpenXML.Filter = "QSPR Compressed xtt files (*.cxtt)|*.cxtt|QSPR xtt files (*.xtt)|*.xtt|All files (*.*)|*.*";
		dlgOpenXML.Title = "Select Test tree 1";
		if (dlgOpenXML.ShowDialog() == DialogResult.OK)
		{
			txtOldPath.Text = dlgOpenXML.FileName.ToString().Trim();
		}
	}

	private void btnOpenFile2_Click(object sender, EventArgs e)
	{
		dlgOpenXML.CheckPathExists = true;
		dlgOpenXML.ValidateNames = true;
		dlgOpenXML.RestoreDirectory = true;
		dlgOpenXML.CheckFileExists = true;
		dlgOpenXML.FileName = "";
		dlgOpenXML.Filter = "QSPR Compressed xtt files (*.cxtt)|*.cxtt|QSPR xtt files (*.xtt)|*.xtt|All files (*.*)|*.*";
		dlgOpenXML.Title = "Select Test tree 2";
		if (dlgOpenXML.ShowDialog() == DialogResult.OK)
		{
			txtNewPath.Text = dlgOpenXML.FileName.ToString().Trim();
		}
	}

	private void btnSaveResults_Click(object sender, EventArgs e)
	{
		try
		{
			dlgSaveFile.CheckPathExists = true;
			dlgSaveFile.Filter = "XML files(*.xml)|*.xml|All files(*.*)|*.*";
			dlgSaveFile.OverwritePrompt = true;
			dlgSaveFile.ValidateNames = true;
			dlgSaveFile.Title = "Compare Test Tree Report";
			dlgSaveFile.FileName = "result.xml";
			if (dlgSaveFile.ShowDialog() == DialogResult.OK)
			{
				File.Copy(tempResultFilePath, dlgSaveFile.FileName.ToString().Trim(), overwrite: true);
			}
		}
		catch (Exception ex)
		{
			fileCompareStatus.Text = ex.Message;
		}
	}

	private void xpBtnOpenIE_Click(object sender, EventArgs e)
	{
		if (File.Exists(tempResultFilePath))
		{
			IEOpenOnURL(tempResultFilePath);
		}
		else
		{
			fileCompareStatus.Text = "Results file does not exist.";
		}
	}

	private void btnRunCompare_Click(object sender, EventArgs e)
	{
		try
		{
			CommonFunctions.DisplayReport = true;
			fileCompareStatus.Text = "Please wait, comparing the xml files..";
			wbBrowse.Navigate("about:blank");
		}
		catch (Exception ex)
		{
			fileCompareStatus.Text = ex.Message;
		}
		finally
		{
			btnRunCompare.Enabled = true;
		}
	}

	private void wbBrowse_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
	{
		if (!CommonFunctions.DisplayReport)
		{
			return;
		}
		Statistics.ResetCount();
		xpBtnOpenIE.Enabled = false;
		btnSaveResults.Enabled = false;
		btnRunCompare.Enabled = false;
		if ((txtOldPath.Text.Length == 0) | (txtNewPath.Text.Length == 0))
		{
			fileCompareStatus.Text = "You must choose two files before proceeding.";
			btnRunCompare.Enabled = true;
			return;
		}
		SerializeComponents tree = null;
		SerializeComponents tree2 = null;
		try
		{
			LoadTree(txtNewPath.Text, out tree2);
			LoadTree(txtOldPath.Text, out tree);
		}
		catch (Exception ex)
		{
			fileCompareStatus.Text = ex.Message;
			string text = " Only files saved in QSPR format can be compared. \n";
			text += " Open the file in QSPR application, and click on Save As. Make sure the file 'Save As' type is 'QSPR xtt files'. \n";
			text += " Save the file and retry the comparision.";
			MessageBox.Show(text);
			btnRunCompare.Enabled = true;
			return;
		}
		CreateXmlDoc(out var xmlDoc, out var xmlSerializeElt);
		ParseTree(tree, tree2, ref xmlDoc, ref xmlSerializeElt);
		XmlElement rootNode = xmlDoc.CreateElement("FileNames");
		FileNames.AddFileNames(txtOldPath.Text, txtNewPath.Text, ref xmlDoc, ref rootNode);
		xmlSerializeElt.AppendChild(rootNode);
		try
		{
			xmlDoc.Save(tempResultFilePath);
		}
		catch (Exception ex2)
		{
			fileCompareStatus.Text = ex2.Message;
		}
		if (File.Exists(tempResultFilePath))
		{
			wbBrowse.Navigate(tempResultFilePath);
			xpBtnOpenIE.Enabled = true;
			btnSaveResults.Enabled = true;
		}
		fileCompareStatus.Text = "Ready";
		CommonFunctions.DisplayReport = false;
		btnRunCompare.Enabled = true;
	}

	private void frmCompare_Load(object sender, EventArgs e)
	{
		xpBtnOpenIE.Enabled = false;
		btnSaveResults.Enabled = false;
	}

	private void btnAbout_Click(object sender, EventArgs e)
	{
		Form form = new frmCompareAboutBox();
		form.ShowDialog();
	}

	protected override void Dispose(bool disposing)
	{
		if (disposing && components != null)
		{
			components.Dispose();
		}
		base.Dispose(disposing);
	}

	private void InitializeComponent()
	{
		System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(QSPRTreeCompare.frmCompare));
		this.groupBox1 = new System.Windows.Forms.GroupBox();
		this.pictureBox1 = new System.Windows.Forms.PictureBox();
		this.txtOldPath = new System.Windows.Forms.TextBox();
		this.txtNewPath = new System.Windows.Forms.TextBox();
		this.btnOpenFile1 = new System.Windows.Forms.Button();
		this.btnOpenFile2 = new System.Windows.Forms.Button();
		this.btnRunCompare = new System.Windows.Forms.Button();
		this.xpBtnOpenIE = new System.Windows.Forms.Button();
		this.btnSaveResults = new System.Windows.Forms.Button();
		this.fileCompareStatus = new System.Windows.Forms.StatusBar();
		this.dlgOpenXML = new System.Windows.Forms.OpenFileDialog();
		this.dlgSaveFile = new System.Windows.Forms.SaveFileDialog();
		this.groupOriginalFile = new System.Windows.Forms.GroupBox();
		this.groupUpdatedFile = new System.Windows.Forms.GroupBox();
		this.btnAbout = new System.Windows.Forms.Button();
		this.chkXLSSource = new System.Windows.Forms.CheckBox();
		this.label1 = new System.Windows.Forms.Label();
		this.wbBrowse = new System.Windows.Forms.WebBrowser();
		this.groupBox2 = new System.Windows.Forms.GroupBox();
		this.groupBox1.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.pictureBox1).BeginInit();
		this.groupOriginalFile.SuspendLayout();
		this.groupUpdatedFile.SuspendLayout();
		this.groupBox2.SuspendLayout();
		base.SuspendLayout();
		this.groupBox1.Controls.Add(this.pictureBox1);
		this.groupBox1.Location = new System.Drawing.Point(7, 19);
		this.groupBox1.Name = "groupBox1";
		this.groupBox1.Size = new System.Drawing.Size(232, 96);
		this.groupBox1.TabIndex = 25;
		this.groupBox1.TabStop = false;
		this.groupBox1.Text = "Legend";
		this.pictureBox1.Image = (System.Drawing.Image)resources.GetObject("pictureBox1.Image");
		this.pictureBox1.Location = new System.Drawing.Point(16, 16);
		this.pictureBox1.Name = "pictureBox1";
		this.pictureBox1.Size = new System.Drawing.Size(200, 71);
		this.pictureBox1.TabIndex = 22;
		this.pictureBox1.TabStop = false;
		this.txtOldPath.Location = new System.Drawing.Point(10, 17);
		this.txtOldPath.Name = "txtOldPath";
		this.txtOldPath.Size = new System.Drawing.Size(384, 20);
		this.txtOldPath.TabIndex = 26;
		this.txtNewPath.Location = new System.Drawing.Point(9, 19);
		this.txtNewPath.Name = "txtNewPath";
		this.txtNewPath.Size = new System.Drawing.Size(384, 20);
		this.txtNewPath.TabIndex = 27;
		this.btnOpenFile1.Image = (System.Drawing.Image)resources.GetObject("btnOpenFile1.Image");
		this.btnOpenFile1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
		this.btnOpenFile1.Location = new System.Drawing.Point(410, 15);
		this.btnOpenFile1.Name = "btnOpenFile1";
		this.btnOpenFile1.Size = new System.Drawing.Size(88, 23);
		this.btnOpenFile1.TabIndex = 29;
		this.btnOpenFile1.Text = "   Open File 1";
		this.btnOpenFile1.Click += new System.EventHandler(btnOpenFile1_Click);
		this.btnOpenFile2.Image = (System.Drawing.Image)resources.GetObject("btnOpenFile2.Image");
		this.btnOpenFile2.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
		this.btnOpenFile2.Location = new System.Drawing.Point(409, 16);
		this.btnOpenFile2.Name = "btnOpenFile2";
		this.btnOpenFile2.Size = new System.Drawing.Size(88, 23);
		this.btnOpenFile2.TabIndex = 30;
		this.btnOpenFile2.Text = "   Open File 2";
		this.btnOpenFile2.Click += new System.EventHandler(btnOpenFile2_Click);
		this.btnRunCompare.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
		this.btnRunCompare.Image = (System.Drawing.Image)resources.GetObject("btnRunCompare.Image");
		this.btnRunCompare.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
		this.btnRunCompare.Location = new System.Drawing.Point(761, 19);
		this.btnRunCompare.Name = "btnRunCompare";
		this.btnRunCompare.Size = new System.Drawing.Size(128, 48);
		this.btnRunCompare.TabIndex = 31;
		this.btnRunCompare.Text = "       Run Compare";
		this.btnRunCompare.Click += new System.EventHandler(btnRunCompare_Click);
		this.xpBtnOpenIE.BackColor = System.Drawing.SystemColors.Control;
		this.xpBtnOpenIE.Image = (System.Drawing.Image)resources.GetObject("xpBtnOpenIE.Image");
		this.xpBtnOpenIE.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
		this.xpBtnOpenIE.Location = new System.Drawing.Point(897, 19);
		this.xpBtnOpenIE.Name = "xpBtnOpenIE";
		this.xpBtnOpenIE.Size = new System.Drawing.Size(151, 48);
		this.xpBtnOpenIE.TabIndex = 32;
		this.xpBtnOpenIE.Text = "       Open result in Internet Explorer";
		this.xpBtnOpenIE.UseVisualStyleBackColor = false;
		this.xpBtnOpenIE.Click += new System.EventHandler(xpBtnOpenIE_Click);
		this.btnSaveResults.Image = (System.Drawing.Image)resources.GetObject("btnSaveResults.Image");
		this.btnSaveResults.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
		this.btnSaveResults.Location = new System.Drawing.Point(761, 77);
		this.btnSaveResults.Name = "btnSaveResults";
		this.btnSaveResults.Size = new System.Drawing.Size(128, 48);
		this.btnSaveResults.TabIndex = 33;
		this.btnSaveResults.Text = "Save Results";
		this.btnSaveResults.Click += new System.EventHandler(btnSaveResults_Click);
		this.fileCompareStatus.Location = new System.Drawing.Point(0, 568);
		this.fileCompareStatus.Name = "fileCompareStatus";
		this.fileCompareStatus.Size = new System.Drawing.Size(1054, 22);
		this.fileCompareStatus.TabIndex = 35;
		this.dlgOpenXML.FileName = "openFileDialog1";
		this.groupOriginalFile.Controls.Add(this.btnOpenFile1);
		this.groupOriginalFile.Controls.Add(this.txtOldPath);
		this.groupOriginalFile.Location = new System.Drawing.Point(245, 19);
		this.groupOriginalFile.Name = "groupOriginalFile";
		this.groupOriginalFile.Size = new System.Drawing.Size(509, 48);
		this.groupOriginalFile.TabIndex = 36;
		this.groupOriginalFile.TabStop = false;
		this.groupOriginalFile.Text = "Original File";
		this.groupUpdatedFile.Controls.Add(this.btnOpenFile2);
		this.groupUpdatedFile.Controls.Add(this.txtNewPath);
		this.groupUpdatedFile.Location = new System.Drawing.Point(247, 73);
		this.groupUpdatedFile.Name = "groupUpdatedFile";
		this.groupUpdatedFile.Size = new System.Drawing.Size(507, 48);
		this.groupUpdatedFile.TabIndex = 37;
		this.groupUpdatedFile.TabStop = false;
		this.groupUpdatedFile.Text = "Updated File";
		this.btnAbout.Image = (System.Drawing.Image)resources.GetObject("btnAbout.Image");
		this.btnAbout.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
		this.btnAbout.Location = new System.Drawing.Point(898, 97);
		this.btnAbout.Name = "btnAbout";
		this.btnAbout.Size = new System.Drawing.Size(127, 24);
		this.btnAbout.TabIndex = 38;
		this.btnAbout.Text = "About";
		this.btnAbout.UseVisualStyleBackColor = true;
		this.btnAbout.Click += new System.EventHandler(btnAbout_Click);
		this.chkXLSSource.AutoSize = true;
		this.chkXLSSource.Checked = true;
		this.chkXLSSource.CheckState = System.Windows.Forms.CheckState.Checked;
		this.chkXLSSource.Location = new System.Drawing.Point(905, 73);
		this.chkXLSSource.Name = "chkXLSSource";
		this.chkXLSSource.Size = new System.Drawing.Size(120, 17);
		this.chkXLSSource.TabIndex = 40;
		this.chkXLSSource.Text = "Use local stylesheet";
		this.chkXLSSource.UseVisualStyleBackColor = true;
		this.label1.AutoSize = true;
		this.label1.ForeColor = System.Drawing.Color.Red;
		this.label1.Location = new System.Drawing.Point(7, 124);
		this.label1.Name = "label1";
		this.label1.Size = new System.Drawing.Size(283, 13);
		this.label1.TabIndex = 41;
		this.label1.Text = "*Pre and Post test conditions are not verified in this release";
		this.wbBrowse.Dock = System.Windows.Forms.DockStyle.Fill;
		this.wbBrowse.Location = new System.Drawing.Point(0, 153);
		this.wbBrowse.MinimumSize = new System.Drawing.Size(20, 20);
		this.wbBrowse.Name = "wbBrowse";
		this.wbBrowse.Size = new System.Drawing.Size(1054, 415);
		this.wbBrowse.TabIndex = 42;
		this.groupBox2.Controls.Add(this.groupBox1);
		this.groupBox2.Controls.Add(this.groupOriginalFile);
		this.groupBox2.Controls.Add(this.btnAbout);
		this.groupBox2.Controls.Add(this.chkXLSSource);
		this.groupBox2.Controls.Add(this.label1);
		this.groupBox2.Controls.Add(this.groupUpdatedFile);
		this.groupBox2.Controls.Add(this.btnRunCompare);
		this.groupBox2.Controls.Add(this.xpBtnOpenIE);
		this.groupBox2.Controls.Add(this.btnSaveResults);
		this.groupBox2.Dock = System.Windows.Forms.DockStyle.Top;
		this.groupBox2.Location = new System.Drawing.Point(0, 0);
		this.groupBox2.Name = "groupBox2";
		this.groupBox2.Size = new System.Drawing.Size(1054, 153);
		this.groupBox2.TabIndex = 43;
		this.groupBox2.TabStop = false;
		base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.ClientSize = new System.Drawing.Size(1054, 590);
		base.Controls.Add(this.wbBrowse);
		base.Controls.Add(this.groupBox2);
		base.Controls.Add(this.fileCompareStatus);
		base.Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon");
		base.Name = "frmCompare";
		this.Text = "QSPR tree diff tool";
		base.Load += new System.EventHandler(frmCompare_Load);
		this.groupBox1.ResumeLayout(false);
		((System.ComponentModel.ISupportInitialize)this.pictureBox1).EndInit();
		this.groupOriginalFile.ResumeLayout(false);
		this.groupOriginalFile.PerformLayout();
		this.groupUpdatedFile.ResumeLayout(false);
		this.groupUpdatedFile.PerformLayout();
		this.groupBox2.ResumeLayout(false);
		this.groupBox2.PerformLayout();
		base.ResumeLayout(false);
	}
}
