using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using QC.QsprShared.Config;
using QC.QsprShared.Dialogs;
using QC.QTMInterface;
using QC.QTMSecurity;

namespace QC.QTMApplication;

public class FeatureConfigDialog : Form
{
	private bool validationFailed;

	private IContainer components;

	private TextBox textBoxLogDir;

	private Label label1;

	private Label label2;

	private TextBox textBoxConfigDir;

	private Label label3;

	private GroupBox groupBox1;

	private Button buttonCreateConfigFile;

	private TextBox textBoxToolsDir;

	private Label label6;

	private Label label7;

	private TextBox textBoxStyleSheetsDir;

	private TextBox textBoxPluginsDir;

	private Label label4;

	private Label label5;

	private TextBox textBoxTraceMsgDir;

	private TextBox textBoxSamplesDir;

	private Label label8;

	private Label label9;

	private TextBox textBoxXLTemplatesDir;

	private ErrorProvider errorProvider1;

	private Label label10;

	private TextBox textBoxTempDir;

	private Label label11;

	private TextBox textBoxHelpDirectory;

	private Label label12;

	private TextBox textBoxDefaultDockingPath;

	private CheckBox checkBoxDisableLabView;

	private CheckBox checkBoxDisableCTS;

	private Label label13;

	private ComboBox comboBoxSecurityLevel;

	private CheckBox checkBoxQDARTInstall;

	private CheckBox checkBoxEnableSaveAsQSPR2;

	public FeatureConfigDialog()
	{
		InitializeComponent();
		textBoxConfigDir.Text = QSPRMainWindow.FeatureConfigInfo.ConfigDirectory;
		textBoxLogDir.Text = QSPRMainWindow.FeatureConfigInfo.LogDirectory;
		textBoxPluginsDir.Text = QSPRMainWindow.FeatureConfigInfo.PluginsDirectory;
		textBoxSamplesDir.Text = QSPRMainWindow.FeatureConfigInfo.SamplesDirectory;
		textBoxStyleSheetsDir.Text = QSPRMainWindow.FeatureConfigInfo.StyleSheetsDirectory;
		textBoxToolsDir.Text = QSPRMainWindow.FeatureConfigInfo.ToolsDirectory;
		textBoxTraceMsgDir.Text = QSPRMainWindow.FeatureConfigInfo.TraceMsgDirectory;
		textBoxXLTemplatesDir.Text = QSPRMainWindow.FeatureConfigInfo.XLTemplatesDirectory;
		textBoxTempDir.Text = QSPRMainWindow.FeatureConfigInfo.TempDirectory;
		textBoxHelpDirectory.Text = QSPRMainWindow.FeatureConfigInfo.HelpDirectory;
		textBoxDefaultDockingPath.Text = QSPRMainWindow.FeatureConfigInfo.DefaultDockingPath;
		checkBoxDisableLabView.Checked = QSPRMainWindow.FeatureConfigInfo.DisableLabView;
		checkBoxDisableCTS.Checked = QSPRMainWindow.FeatureConfigInfo.DisableCTS;
		checkBoxQDARTInstall.Checked = QSPRMainWindow.FeatureConfigInfo.QdartInstall;
		checkBoxEnableSaveAsQSPR2.Checked = QSPRMainWindow.FeatureConfigInfo.EnableSaveAsQSPR2;
		comboBoxSecurityLevel.Items.Clear();
		comboBoxSecurityLevel.Items.Add(AccessLevel.Engineer.ToString());
		comboBoxSecurityLevel.Items.Add(AccessLevel.Technician.ToString());
		comboBoxSecurityLevel.Items.Add(AccessLevel.Operator.ToString());
		comboBoxSecurityLevel.Items.Add("Network");
		if (QSPRMainWindow.FeatureConfigInfo.SecurityAccessLevel == AccessLevel.Engineer.ToString())
		{
			comboBoxSecurityLevel.SelectedItem = AccessLevel.Engineer.ToString();
		}
		else if (QSPRMainWindow.FeatureConfigInfo.SecurityAccessLevel == AccessLevel.Technician.ToString())
		{
			comboBoxSecurityLevel.SelectedItem = AccessLevel.Technician.ToString();
		}
		else if (QSPRMainWindow.FeatureConfigInfo.SecurityAccessLevel == AccessLevel.Operator.ToString())
		{
			comboBoxSecurityLevel.SelectedItem = AccessLevel.Operator.ToString();
		}
		else
		{
			comboBoxSecurityLevel.SelectedItem = "Network";
		}
	}

	private void buttonCreateConfigFile_Click(object sender, EventArgs e)
	{
		try
		{
			if (!validationFailed)
			{
				QSPRMainWindow.FeatureConfigInfo.ConfigDirectory = textBoxConfigDir.Text;
				QSPRMainWindow.FeatureConfigInfo.LogDirectory = textBoxLogDir.Text;
				QSPRMainWindow.FeatureConfigInfo.PluginsDirectory = textBoxPluginsDir.Text;
				QSPRMainWindow.FeatureConfigInfo.SamplesDirectory = textBoxSamplesDir.Text;
				QSPRMainWindow.FeatureConfigInfo.StyleSheetsDirectory = textBoxStyleSheetsDir.Text;
				QSPRMainWindow.FeatureConfigInfo.ToolsDirectory = textBoxToolsDir.Text;
				QSPRMainWindow.FeatureConfigInfo.TraceMsgDirectory = textBoxTraceMsgDir.Text;
				QSPRMainWindow.FeatureConfigInfo.XLTemplatesDirectory = textBoxXLTemplatesDir.Text;
				QSPRMainWindow.FeatureConfigInfo.TempDirectory = textBoxTempDir.Text;
				QSPRMainWindow.FeatureConfigInfo.HelpDirectory = textBoxHelpDirectory.Text;
				QSPRMainWindow.FeatureConfigInfo.DefaultDockingPath = textBoxDefaultDockingPath.Text;
				QSPRMainWindow.FeatureConfigInfo.DisableLabView = checkBoxDisableLabView.Checked;
				QSPRMainWindow.FeatureConfigInfo.DisableCTS = checkBoxDisableCTS.Checked;
				QSPRMainWindow.FeatureConfigInfo.QdartInstall = checkBoxQDARTInstall.Checked;
				QSPRMainWindow.FeatureConfigInfo.EnableSaveAsQSPR2 = checkBoxEnableSaveAsQSPR2.Checked;
				if (comboBoxSecurityLevel.SelectedItem.ToString() == AccessLevel.Engineer.ToString())
				{
					QSPRMainWindow.FeatureConfigInfo.SecurityAccessLevel = AccessLevel.Engineer.ToString();
				}
				else if (comboBoxSecurityLevel.SelectedItem.ToString() == AccessLevel.Technician.ToString())
				{
					QSPRMainWindow.FeatureConfigInfo.SecurityAccessLevel = AccessLevel.Technician.ToString();
				}
				else if (comboBoxSecurityLevel.SelectedItem.ToString() == AccessLevel.Operator.ToString())
				{
					QSPRMainWindow.FeatureConfigInfo.SecurityAccessLevel = AccessLevel.Operator.ToString();
				}
				else
				{
					QSPRMainWindow.FeatureConfigInfo.SecurityAccessLevel = "Network";
				}
				SaveFileDialog saveFileDialog = new SaveFileDialog();
				saveFileDialog.FileName = "Feature.config";
				saveFileDialog.DefaultExt = "config";
				saveFileDialog.Filter = "Config file (*.config)|*.config|All files (*.*)|*.*";
				saveFileDialog.AddExtension = true;
				new SaveFileDialog();
				if (saveFileDialog.ShowDialog() == DialogResult.OK)
				{
					string fileName = saveFileDialog.FileName;
					FeatureConfig.SerializeBinObject(QSPRMainWindow.FeatureConfigInfo, fileName);
					AppMessageDialog.Show(fileName + " created successfully.", "Feature Config", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, DialogResult.OK, MessageDialogType.Information);
					GlobalInformation.RunTimeConfig = QSPRMainWindow.FeatureConfigInfo.ExportToStruct();
					Close();
				}
			}
			else
			{
				AppMessageDialog.Show("Directories can't be empty.", "Feature Config", MessageBoxButtons.OK, MessageBoxIcon.Hand, DialogResult.OK, MessageDialogType.Error);
			}
		}
		catch (Exception ex)
		{
			AppMessageDialog.Show("Failed to generate config file, " + ex.Message, "Feature Config", MessageBoxButtons.OK, MessageBoxIcon.Hand, DialogResult.OK, MessageDialogType.Exception);
		}
	}

	private void textBox_Validating(object sender, CancelEventArgs e)
	{
		string value = "Please provide a valid directory.";
		validationFailed = false;
		if (textBoxConfigDir.Text == string.Empty)
		{
			errorProvider1.SetError(textBoxConfigDir, value);
			validationFailed = true;
		}
		else
		{
			errorProvider1.SetError(textBoxConfigDir, "");
		}
		if (textBoxLogDir.Text == string.Empty)
		{
			errorProvider1.SetError(textBoxLogDir, value);
			validationFailed = true;
		}
		else
		{
			errorProvider1.SetError(textBoxLogDir, "");
		}
		if (textBoxPluginsDir.Text == string.Empty)
		{
			errorProvider1.SetError(textBoxPluginsDir, value);
			validationFailed = true;
		}
		else
		{
			errorProvider1.SetError(textBoxPluginsDir, "");
		}
		if (textBoxSamplesDir.Text == string.Empty)
		{
			errorProvider1.SetError(textBoxSamplesDir, value);
			validationFailed = true;
		}
		else
		{
			errorProvider1.SetError(textBoxSamplesDir, "");
		}
		if (textBoxStyleSheetsDir.Text == string.Empty)
		{
			errorProvider1.SetError(textBoxStyleSheetsDir, value);
			validationFailed = true;
		}
		else
		{
			errorProvider1.SetError(textBoxStyleSheetsDir, "");
		}
		if (textBoxToolsDir.Text == string.Empty)
		{
			errorProvider1.SetError(textBoxToolsDir, value);
			validationFailed = true;
		}
		else
		{
			errorProvider1.SetError(textBoxToolsDir, "");
		}
		if (textBoxTraceMsgDir.Text == string.Empty)
		{
			errorProvider1.SetError(textBoxTraceMsgDir, value);
			validationFailed = true;
		}
		else
		{
			errorProvider1.SetError(textBoxTraceMsgDir, "");
		}
		if (textBoxXLTemplatesDir.Text == string.Empty)
		{
			errorProvider1.SetError(textBoxXLTemplatesDir, value);
			validationFailed = true;
		}
		else
		{
			errorProvider1.SetError(textBoxXLTemplatesDir, "");
		}
		if (textBoxDefaultDockingPath.Text == string.Empty)
		{
			errorProvider1.SetError(textBoxDefaultDockingPath, "Please provide a default docking config.");
			validationFailed = true;
		}
		else
		{
			errorProvider1.SetError(textBoxDefaultDockingPath, "");
		}
	}

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

	private void InitializeComponent()
	{
		this.components = new System.ComponentModel.Container();
		this.textBoxLogDir = new System.Windows.Forms.TextBox();
		this.label1 = new System.Windows.Forms.Label();
		this.label2 = new System.Windows.Forms.Label();
		this.textBoxConfigDir = new System.Windows.Forms.TextBox();
		this.label3 = new System.Windows.Forms.Label();
		this.groupBox1 = new System.Windows.Forms.GroupBox();
		this.label11 = new System.Windows.Forms.Label();
		this.textBoxHelpDirectory = new System.Windows.Forms.TextBox();
		this.label10 = new System.Windows.Forms.Label();
		this.textBoxTempDir = new System.Windows.Forms.TextBox();
		this.textBoxSamplesDir = new System.Windows.Forms.TextBox();
		this.label8 = new System.Windows.Forms.Label();
		this.label9 = new System.Windows.Forms.Label();
		this.textBoxXLTemplatesDir = new System.Windows.Forms.TextBox();
		this.textBoxToolsDir = new System.Windows.Forms.TextBox();
		this.label6 = new System.Windows.Forms.Label();
		this.label7 = new System.Windows.Forms.Label();
		this.textBoxStyleSheetsDir = new System.Windows.Forms.TextBox();
		this.textBoxPluginsDir = new System.Windows.Forms.TextBox();
		this.label4 = new System.Windows.Forms.Label();
		this.label5 = new System.Windows.Forms.Label();
		this.textBoxTraceMsgDir = new System.Windows.Forms.TextBox();
		this.buttonCreateConfigFile = new System.Windows.Forms.Button();
		this.errorProvider1 = new System.Windows.Forms.ErrorProvider(this.components);
		this.label12 = new System.Windows.Forms.Label();
		this.textBoxDefaultDockingPath = new System.Windows.Forms.TextBox();
		this.checkBoxDisableLabView = new System.Windows.Forms.CheckBox();
		this.checkBoxDisableCTS = new System.Windows.Forms.CheckBox();
		this.comboBoxSecurityLevel = new System.Windows.Forms.ComboBox();
		this.label13 = new System.Windows.Forms.Label();
		this.checkBoxQDARTInstall = new System.Windows.Forms.CheckBox();
		this.checkBoxEnableSaveAsQSPR2 = new System.Windows.Forms.CheckBox();
		this.groupBox1.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.errorProvider1).BeginInit();
		base.SuspendLayout();
		this.textBoxLogDir.Location = new System.Drawing.Point(133, 20);
		this.textBoxLogDir.Name = "textBoxLogDir";
		this.textBoxLogDir.Size = new System.Drawing.Size(191, 20);
		this.textBoxLogDir.TabIndex = 0;
		this.textBoxLogDir.Validating += new System.ComponentModel.CancelEventHandler(textBox_Validating);
		this.label1.AutoSize = true;
		this.label1.Location = new System.Drawing.Point(6, 22);
		this.label1.Name = "label1";
		this.label1.Size = new System.Drawing.Size(73, 13);
		this.label1.TabIndex = 1;
		this.label1.Text = "Log Directory:";
		this.label2.AutoSize = true;
		this.label2.Location = new System.Drawing.Point(6, 48);
		this.label2.Name = "label2";
		this.label2.Size = new System.Drawing.Size(85, 13);
		this.label2.TabIndex = 3;
		this.label2.Text = "Config Directory:";
		this.textBoxConfigDir.Location = new System.Drawing.Point(133, 46);
		this.textBoxConfigDir.Name = "textBoxConfigDir";
		this.textBoxConfigDir.Size = new System.Drawing.Size(191, 20);
		this.textBoxConfigDir.TabIndex = 2;
		this.textBoxConfigDir.Validating += new System.ComponentModel.CancelEventHandler(textBox_Validating);
		this.label3.AutoSize = true;
		this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 14f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
		this.label3.Location = new System.Drawing.Point(4, 10);
		this.label3.Name = "label3";
		this.label3.Size = new System.Drawing.Size(162, 24);
		this.label3.TabIndex = 4;
		this.label3.Text = "Feature Settings";
		this.groupBox1.Controls.Add(this.label11);
		this.groupBox1.Controls.Add(this.textBoxHelpDirectory);
		this.groupBox1.Controls.Add(this.label10);
		this.groupBox1.Controls.Add(this.textBoxTempDir);
		this.groupBox1.Controls.Add(this.textBoxSamplesDir);
		this.groupBox1.Controls.Add(this.label8);
		this.groupBox1.Controls.Add(this.label9);
		this.groupBox1.Controls.Add(this.textBoxXLTemplatesDir);
		this.groupBox1.Controls.Add(this.textBoxToolsDir);
		this.groupBox1.Controls.Add(this.label6);
		this.groupBox1.Controls.Add(this.label7);
		this.groupBox1.Controls.Add(this.textBoxStyleSheetsDir);
		this.groupBox1.Controls.Add(this.textBoxPluginsDir);
		this.groupBox1.Controls.Add(this.label4);
		this.groupBox1.Controls.Add(this.label5);
		this.groupBox1.Controls.Add(this.textBoxTraceMsgDir);
		this.groupBox1.Controls.Add(this.textBoxLogDir);
		this.groupBox1.Controls.Add(this.label1);
		this.groupBox1.Controls.Add(this.label2);
		this.groupBox1.Controls.Add(this.textBoxConfigDir);
		this.groupBox1.Location = new System.Drawing.Point(8, 49);
		this.groupBox1.Name = "groupBox1";
		this.groupBox1.Size = new System.Drawing.Size(360, 288);
		this.groupBox1.TabIndex = 5;
		this.groupBox1.TabStop = false;
		this.groupBox1.Text = "Folder Settings";
		this.label11.AutoSize = true;
		this.label11.Location = new System.Drawing.Point(6, 256);
		this.label11.Name = "label11";
		this.label11.Size = new System.Drawing.Size(77, 13);
		this.label11.TabIndex = 19;
		this.label11.Text = "Help Directory:";
		this.textBoxHelpDirectory.Location = new System.Drawing.Point(133, 254);
		this.textBoxHelpDirectory.Name = "textBoxHelpDirectory";
		this.textBoxHelpDirectory.Size = new System.Drawing.Size(191, 20);
		this.textBoxHelpDirectory.TabIndex = 18;
		this.label10.AutoSize = true;
		this.label10.Location = new System.Drawing.Point(6, 230);
		this.label10.Name = "label10";
		this.label10.Size = new System.Drawing.Size(82, 13);
		this.label10.TabIndex = 17;
		this.label10.Text = "Temp Directory:";
		this.textBoxTempDir.Location = new System.Drawing.Point(133, 228);
		this.textBoxTempDir.Name = "textBoxTempDir";
		this.textBoxTempDir.Size = new System.Drawing.Size(191, 20);
		this.textBoxTempDir.TabIndex = 16;
		this.textBoxSamplesDir.Location = new System.Drawing.Point(133, 176);
		this.textBoxSamplesDir.Name = "textBoxSamplesDir";
		this.textBoxSamplesDir.Size = new System.Drawing.Size(191, 20);
		this.textBoxSamplesDir.TabIndex = 12;
		this.textBoxSamplesDir.Validating += new System.ComponentModel.CancelEventHandler(textBox_Validating);
		this.label8.AutoSize = true;
		this.label8.Location = new System.Drawing.Point(6, 178);
		this.label8.Name = "label8";
		this.label8.Size = new System.Drawing.Size(95, 13);
		this.label8.TabIndex = 13;
		this.label8.Text = "Samples Directory:";
		this.label9.AutoSize = true;
		this.label9.Location = new System.Drawing.Point(6, 204);
		this.label9.Name = "label9";
		this.label9.Size = new System.Drawing.Size(117, 13);
		this.label9.TabIndex = 15;
		this.label9.Text = "XLTemplates Directory:";
		this.textBoxXLTemplatesDir.Location = new System.Drawing.Point(133, 202);
		this.textBoxXLTemplatesDir.Name = "textBoxXLTemplatesDir";
		this.textBoxXLTemplatesDir.Size = new System.Drawing.Size(191, 20);
		this.textBoxXLTemplatesDir.TabIndex = 14;
		this.textBoxXLTemplatesDir.Validating += new System.ComponentModel.CancelEventHandler(textBox_Validating);
		this.textBoxToolsDir.Location = new System.Drawing.Point(133, 124);
		this.textBoxToolsDir.Name = "textBoxToolsDir";
		this.textBoxToolsDir.Size = new System.Drawing.Size(191, 20);
		this.textBoxToolsDir.TabIndex = 8;
		this.textBoxToolsDir.Validating += new System.ComponentModel.CancelEventHandler(textBox_Validating);
		this.label6.AutoSize = true;
		this.label6.Location = new System.Drawing.Point(6, 126);
		this.label6.Name = "label6";
		this.label6.Size = new System.Drawing.Size(81, 13);
		this.label6.TabIndex = 9;
		this.label6.Text = "Tools Directory:";
		this.label7.AutoSize = true;
		this.label7.Location = new System.Drawing.Point(6, 152);
		this.label7.Name = "label7";
		this.label7.Size = new System.Drawing.Size(111, 13);
		this.label7.TabIndex = 11;
		this.label7.Text = "StyleSheets Directory:";
		this.textBoxStyleSheetsDir.Location = new System.Drawing.Point(133, 150);
		this.textBoxStyleSheetsDir.Name = "textBoxStyleSheetsDir";
		this.textBoxStyleSheetsDir.Size = new System.Drawing.Size(191, 20);
		this.textBoxStyleSheetsDir.TabIndex = 10;
		this.textBoxStyleSheetsDir.Validating += new System.ComponentModel.CancelEventHandler(textBox_Validating);
		this.textBoxPluginsDir.Location = new System.Drawing.Point(133, 72);
		this.textBoxPluginsDir.Name = "textBoxPluginsDir";
		this.textBoxPluginsDir.Size = new System.Drawing.Size(191, 20);
		this.textBoxPluginsDir.TabIndex = 4;
		this.textBoxPluginsDir.Validating += new System.ComponentModel.CancelEventHandler(textBox_Validating);
		this.label4.AutoSize = true;
		this.label4.Location = new System.Drawing.Point(6, 74);
		this.label4.Name = "label4";
		this.label4.Size = new System.Drawing.Size(89, 13);
		this.label4.TabIndex = 5;
		this.label4.Text = "Plugins Directory:";
		this.label5.AutoSize = true;
		this.label5.Location = new System.Drawing.Point(6, 100);
		this.label5.Name = "label5";
		this.label5.Size = new System.Drawing.Size(103, 13);
		this.label5.TabIndex = 7;
		this.label5.Text = "TraceMsg Directory:";
		this.textBoxTraceMsgDir.Location = new System.Drawing.Point(133, 98);
		this.textBoxTraceMsgDir.Name = "textBoxTraceMsgDir";
		this.textBoxTraceMsgDir.Size = new System.Drawing.Size(191, 20);
		this.textBoxTraceMsgDir.TabIndex = 6;
		this.textBoxTraceMsgDir.Validating += new System.ComponentModel.CancelEventHandler(textBox_Validating);
		this.buttonCreateConfigFile.Location = new System.Drawing.Point(162, 423);
		this.buttonCreateConfigFile.Name = "buttonCreateConfigFile";
		this.buttonCreateConfigFile.Size = new System.Drawing.Size(137, 23);
		this.buttonCreateConfigFile.TabIndex = 7;
		this.buttonCreateConfigFile.Text = "Create Config File";
		this.buttonCreateConfigFile.UseVisualStyleBackColor = true;
		this.buttonCreateConfigFile.Click += new System.EventHandler(buttonCreateConfigFile_Click);
		this.errorProvider1.ContainerControl = this;
		this.label12.AutoSize = true;
		this.label12.Location = new System.Drawing.Point(15, 379);
		this.label12.Name = "label12";
		this.label12.Size = new System.Drawing.Size(112, 13);
		this.label12.TabIndex = 21;
		this.label12.Text = "Default Docking Path:";
		this.textBoxDefaultDockingPath.Location = new System.Drawing.Point(142, 376);
		this.textBoxDefaultDockingPath.Name = "textBoxDefaultDockingPath";
		this.textBoxDefaultDockingPath.Size = new System.Drawing.Size(191, 20);
		this.textBoxDefaultDockingPath.TabIndex = 20;
		this.checkBoxDisableLabView.AutoSize = true;
		this.checkBoxDisableLabView.Location = new System.Drawing.Point(403, 49);
		this.checkBoxDisableLabView.Name = "checkBoxDisableLabView";
		this.checkBoxDisableLabView.Size = new System.Drawing.Size(138, 17);
		this.checkBoxDisableLabView.TabIndex = 22;
		this.checkBoxDisableLabView.Text = "Disable LabView Kernel";
		this.checkBoxDisableLabView.UseVisualStyleBackColor = true;
		this.checkBoxDisableCTS.AutoSize = true;
		this.checkBoxDisableCTS.Location = new System.Drawing.Point(547, 49);
		this.checkBoxDisableCTS.Name = "checkBoxDisableCTS";
		this.checkBoxDisableCTS.Size = new System.Drawing.Size(118, 17);
		this.checkBoxDisableCTS.TabIndex = 23;
		this.checkBoxDisableCTS.Text = "Disable CTS Kernel";
		this.checkBoxDisableCTS.UseVisualStyleBackColor = true;
		this.comboBoxSecurityLevel.FormattingEnabled = true;
		this.comboBoxSecurityLevel.ItemHeight = 13;
		this.comboBoxSecurityLevel.Items.AddRange(new object[3] { "Engineer", "Technician", "Network" });
		this.comboBoxSecurityLevel.Location = new System.Drawing.Point(544, 123);
		this.comboBoxSecurityLevel.Name = "comboBoxSecurityLevel";
		this.comboBoxSecurityLevel.Size = new System.Drawing.Size(121, 21);
		this.comboBoxSecurityLevel.TabIndex = 24;
		this.label13.AutoSize = true;
		this.label13.Location = new System.Drawing.Point(400, 126);
		this.label13.Name = "label13";
		this.label13.Size = new System.Drawing.Size(115, 13);
		this.label13.TabIndex = 25;
		this.label13.Text = "Security Access Level:";
		this.checkBoxQDARTInstall.AutoSize = true;
		this.checkBoxQDARTInstall.Location = new System.Drawing.Point(403, 81);
		this.checkBoxQDARTInstall.Name = "checkBoxQDARTInstall";
		this.checkBoxQDARTInstall.Size = new System.Drawing.Size(91, 17);
		this.checkBoxQDARTInstall.TabIndex = 26;
		this.checkBoxQDARTInstall.Text = "QDARTInstall";
		this.checkBoxQDARTInstall.UseVisualStyleBackColor = true;
		this.checkBoxEnableSaveAsQSPR2.AutoSize = true;
		this.checkBoxEnableSaveAsQSPR2.Location = new System.Drawing.Point(547, 81);
		this.checkBoxEnableSaveAsQSPR2.Name = "checkBoxEnableSaveAsQSPR2";
		this.checkBoxEnableSaveAsQSPR2.Size = new System.Drawing.Size(141, 17);
		this.checkBoxEnableSaveAsQSPR2.TabIndex = 27;
		this.checkBoxEnableSaveAsQSPR2.Text = "Enable Save As QSPR2";
		this.checkBoxEnableSaveAsQSPR2.UseVisualStyleBackColor = true;
		base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.ClientSize = new System.Drawing.Size(765, 458);
		base.Controls.Add(this.checkBoxEnableSaveAsQSPR2);
		base.Controls.Add(this.checkBoxQDARTInstall);
		base.Controls.Add(this.label13);
		base.Controls.Add(this.comboBoxSecurityLevel);
		base.Controls.Add(this.checkBoxDisableCTS);
		base.Controls.Add(this.checkBoxDisableLabView);
		base.Controls.Add(this.label12);
		base.Controls.Add(this.textBoxDefaultDockingPath);
		base.Controls.Add(this.buttonCreateConfigFile);
		base.Controls.Add(this.groupBox1);
		base.Controls.Add(this.label3);
		base.MaximizeBox = false;
		base.MinimizeBox = false;
		base.Name = "FeatureConfigDialog";
		base.ShowIcon = false;
		this.groupBox1.ResumeLayout(false);
		this.groupBox1.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.errorProvider1).EndInit();
		base.ResumeLayout(false);
		base.PerformLayout();
	}
}
