📄 frmoption.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using ShootSearch.Helper;
namespace ShootSearch
{
/// <summary>
/// frmOption 的摘要说明。
/// </summary>
public class frmOption : System.Windows.Forms.Form
{
//
private static frmMain m_frmMain;
private System.Windows.Forms.TabControl tabControl_Options;
private System.Windows.Forms.CheckBox checkBox_OnlyStartURL;
private System.Windows.Forms.Label label_IndexDirectory;
private System.Windows.Forms.TextBox textBox_IndexDirectory;
private System.Windows.Forms.Label label_ThreadCount;
private System.Windows.Forms.NumericUpDown numUpDown_ThreadCount;
private System.Windows.Forms.CheckBox checkBox_EnableCache;
private System.Windows.Forms.Button button_CacheDirectory;
private System.Windows.Forms.TextBox textBox_CacheDirectory;
private System.Windows.Forms.Label label_CacheDirectory;
private System.Windows.Forms.ComboBox comboBox_CacheTemplate;
private System.Windows.Forms.Label label_CacheTemplate;
private System.Windows.Forms.GroupBox groupBox_CacheType;
private System.Windows.Forms.RadioButton radioButton_CacheTypeKB;
private System.Windows.Forms.RadioButton radioButton_CacheTypeNormal;
private System.Windows.Forms.Button button_IFilter_Delelt;
private System.Windows.Forms.Button button_IFilter_Add;
private System.Windows.Forms.ListView listView_IFilter;
private System.Windows.Forms.Button button_Save;
private System.Windows.Forms.Button button_Cancel;
private System.Windows.Forms.TabPage tabPage_Normal;
private System.Windows.Forms.TabPage tabPage_IndexType;
private System.Windows.Forms.TabPage tabPage_IFilter;
private System.Windows.Forms.FolderBrowserDialog folderBrwDlg_Directory;
private System.Windows.Forms.Button button_IndexDirectory;
private System.Windows.Forms.CheckBox checkBox_AutoIndexUpdate;
private System.Windows.Forms.TabPage tabPage_Console;
private System.Windows.Forms.CheckBox checkBox_ConsoleFileOut;
private System.Windows.Forms.CheckBox checkBox_ConsolePorcessURL;
private System.Windows.Forms.CheckBox checkBox_ConsoleResultURL;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ColumnHeader columnHeader_Ext;
private System.Windows.Forms.ColumnHeader columnHeader_Dec;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public frmOption()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.button_Save = new System.Windows.Forms.Button();
this.button_Cancel = new System.Windows.Forms.Button();
this.tabControl_Options = new System.Windows.Forms.TabControl();
this.tabPage_Normal = new System.Windows.Forms.TabPage();
this.checkBox_AutoIndexUpdate = new System.Windows.Forms.CheckBox();
this.checkBox_OnlyStartURL = new System.Windows.Forms.CheckBox();
this.button_IndexDirectory = new System.Windows.Forms.Button();
this.label_IndexDirectory = new System.Windows.Forms.Label();
this.textBox_IndexDirectory = new System.Windows.Forms.TextBox();
this.label_ThreadCount = new System.Windows.Forms.Label();
this.numUpDown_ThreadCount = new System.Windows.Forms.NumericUpDown();
this.tabPage_IndexType = new System.Windows.Forms.TabPage();
this.comboBox_CacheTemplate = new System.Windows.Forms.ComboBox();
this.label_CacheTemplate = new System.Windows.Forms.Label();
this.groupBox_CacheType = new System.Windows.Forms.GroupBox();
this.radioButton_CacheTypeKB = new System.Windows.Forms.RadioButton();
this.radioButton_CacheTypeNormal = new System.Windows.Forms.RadioButton();
this.checkBox_EnableCache = new System.Windows.Forms.CheckBox();
this.button_CacheDirectory = new System.Windows.Forms.Button();
this.textBox_CacheDirectory = new System.Windows.Forms.TextBox();
this.label_CacheDirectory = new System.Windows.Forms.Label();
this.tabPage_IFilter = new System.Windows.Forms.TabPage();
this.label1 = new System.Windows.Forms.Label();
this.button_IFilter_Delelt = new System.Windows.Forms.Button();
this.button_IFilter_Add = new System.Windows.Forms.Button();
this.listView_IFilter = new System.Windows.Forms.ListView();
this.columnHeader_Ext = new System.Windows.Forms.ColumnHeader();
this.columnHeader_Dec = new System.Windows.Forms.ColumnHeader();
this.tabPage_Console = new System.Windows.Forms.TabPage();
this.checkBox_ConsoleResultURL = new System.Windows.Forms.CheckBox();
this.checkBox_ConsolePorcessURL = new System.Windows.Forms.CheckBox();
this.checkBox_ConsoleFileOut = new System.Windows.Forms.CheckBox();
this.folderBrwDlg_Directory = new System.Windows.Forms.FolderBrowserDialog();
this.tabControl_Options.SuspendLayout();
this.tabPage_Normal.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numUpDown_ThreadCount)).BeginInit();
this.tabPage_IndexType.SuspendLayout();
this.groupBox_CacheType.SuspendLayout();
this.tabPage_IFilter.SuspendLayout();
this.tabPage_Console.SuspendLayout();
this.SuspendLayout();
//
// button_Save
//
this.button_Save.Location = new System.Drawing.Point(272, 320);
this.button_Save.Name = "button_Save";
this.button_Save.TabIndex = 5;
this.button_Save.Text = "确定";
this.button_Save.Click += new System.EventHandler(this.button_Save_Click);
//
// button_Cancel
//
this.button_Cancel.Location = new System.Drawing.Point(384, 320);
this.button_Cancel.Name = "button_Cancel";
this.button_Cancel.TabIndex = 6;
this.button_Cancel.Text = "取消";
this.button_Cancel.Click += new System.EventHandler(this.button_Cancel_Click);
//
// tabControl_Options
//
this.tabControl_Options.Controls.Add(this.tabPage_Normal);
this.tabControl_Options.Controls.Add(this.tabPage_IndexType);
this.tabControl_Options.Controls.Add(this.tabPage_IFilter);
this.tabControl_Options.Controls.Add(this.tabPage_Console);
this.tabControl_Options.Location = new System.Drawing.Point(8, 16);
this.tabControl_Options.Name = "tabControl_Options";
this.tabControl_Options.SelectedIndex = 0;
this.tabControl_Options.Size = new System.Drawing.Size(440, 296);
this.tabControl_Options.TabIndex = 7;
//
// tabPage_Normal
//
this.tabPage_Normal.Controls.Add(this.checkBox_AutoIndexUpdate);
this.tabPage_Normal.Controls.Add(this.checkBox_OnlyStartURL);
this.tabPage_Normal.Controls.Add(this.button_IndexDirectory);
this.tabPage_Normal.Controls.Add(this.label_IndexDirectory);
this.tabPage_Normal.Controls.Add(this.textBox_IndexDirectory);
this.tabPage_Normal.Controls.Add(this.label_ThreadCount);
this.tabPage_Normal.Controls.Add(this.numUpDown_ThreadCount);
this.tabPage_Normal.Location = new System.Drawing.Point(4, 21);
this.tabPage_Normal.Name = "tabPage_Normal";
this.tabPage_Normal.Size = new System.Drawing.Size(432, 271);
this.tabPage_Normal.TabIndex = 0;
this.tabPage_Normal.Text = "一般";
//
// checkBox_AutoIndexUpdate
//
this.checkBox_AutoIndexUpdate.Location = new System.Drawing.Point(24, 136);
this.checkBox_AutoIndexUpdate.Name = "checkBox_AutoIndexUpdate";
this.checkBox_AutoIndexUpdate.Size = new System.Drawing.Size(248, 24);
this.checkBox_AutoIndexUpdate.TabIndex = 17;
this.checkBox_AutoIndexUpdate.Text = "如果索引文件存在自动更新";
//
// checkBox_OnlyStartURL
//
this.checkBox_OnlyStartURL.Location = new System.Drawing.Point(24, 96);
this.checkBox_OnlyStartURL.Name = "checkBox_OnlyStartURL";
this.checkBox_OnlyStartURL.Size = new System.Drawing.Size(248, 24);
this.checkBox_OnlyStartURL.TabIndex = 16;
this.checkBox_OnlyStartURL.Text = "只检索起始URL(Recommend)";
//
// button_IndexDirectory
//
this.button_IndexDirectory.Location = new System.Drawing.Point(368, 48);
this.button_IndexDirectory.Name = "button_IndexDirectory";
this.button_IndexDirectory.Size = new System.Drawing.Size(56, 24);
this.button_IndexDirectory.TabIndex = 13;
this.button_IndexDirectory.Text = "选择";
this.button_IndexDirectory.Click += new System.EventHandler(this.button_IndexDirectory_Click);
//
// label_IndexDirectory
//
this.label_IndexDirectory.AutoSize = true;
this.label_IndexDirectory.Location = new System.Drawing.Point(16, 55);
this.label_IndexDirectory.Name = "label_IndexDirectory";
this.label_IndexDirectory.Size = new System.Drawing.Size(85, 17);
this.label_IndexDirectory.TabIndex = 12;
this.label_IndexDirectory.Text = "索引存放目录:";
//
// textBox_IndexDirectory
//
this.textBox_IndexDirectory.Location = new System.Drawing.Point(104, 48);
this.textBox_IndexDirectory.Name = "textBox_IndexDirectory";
this.textBox_IndexDirectory.Size = new System.Drawing.Size(256, 21);
this.textBox_IndexDirectory.TabIndex = 8;
this.textBox_IndexDirectory.Text = "";
//
// label_ThreadCount
//
this.label_ThreadCount.AutoSize = true;
this.label_ThreadCount.Location = new System.Drawing.Point(16, 24);
this.label_ThreadCount.Name = "label_ThreadCount";
this.label_ThreadCount.Size = new System.Drawing.Size(48, 17);
this.label_ThreadCount.TabIndex = 6;
this.label_ThreadCount.Text = "线程数:";
//
// numUpDown_ThreadCount
//
this.numUpDown_ThreadCount.Location = new System.Drawing.Point(104, 16);
this.numUpDown_ThreadCount.Minimum = new System.Decimal(new int[] {
1,
0,
0,
0});
this.numUpDown_ThreadCount.Name = "numUpDown_ThreadCount";
this.numUpDown_ThreadCount.Size = new System.Drawing.Size(56, 21);
this.numUpDown_ThreadCount.TabIndex = 5;
this.numUpDown_ThreadCount.Value = new System.Decimal(new int[] {
20,
0,
0,
0});
//
// tabPage_IndexType
//
this.tabPage_IndexType.Controls.Add(this.comboBox_CacheTemplate);
this.tabPage_IndexType.Controls.Add(this.label_CacheTemplate);
this.tabPage_IndexType.Controls.Add(this.groupBox_CacheType);
this.tabPage_IndexType.Controls.Add(this.checkBox_EnableCache);
this.tabPage_IndexType.Controls.Add(this.button_CacheDirectory);
this.tabPage_IndexType.Controls.Add(this.textBox_CacheDirectory);
this.tabPage_IndexType.Controls.Add(this.label_CacheDirectory);
this.tabPage_IndexType.Location = new System.Drawing.Point(4, 21);
this.tabPage_IndexType.Name = "tabPage_IndexType";
this.tabPage_IndexType.Size = new System.Drawing.Size(432, 271);
this.tabPage_IndexType.TabIndex = 3;
this.tabPage_IndexType.Text = "索引类型";
//
// comboBox_CacheTemplate
//
this.comboBox_CacheTemplate.Location = new System.Drawing.Point(120, 184);
this.comboBox_CacheTemplate.Name = "comboBox_CacheTemplate";
this.comboBox_CacheTemplate.Size = new System.Drawing.Size(176, 20);
this.comboBox_CacheTemplate.TabIndex = 18;
//
// label_CacheTemplate
//
this.label_CacheTemplate.Location = new System.Drawing.Point(24, 184);
this.label_CacheTemplate.Name = "label_CacheTemplate";
this.label_CacheTemplate.Size = new System.Drawing.Size(72, 16);
this.label_CacheTemplate.TabIndex = 17;
this.label_CacheTemplate.Text = "快照模板:";
//
// groupBox_CacheType
//
this.groupBox_CacheType.Controls.Add(this.radioButton_CacheTypeKB);
this.groupBox_CacheType.Controls.Add(this.radioButton_CacheTypeNormal);
this.groupBox_CacheType.Location = new System.Drawing.Point(16, 112);
this.groupBox_CacheType.Name = "groupBox_CacheType";
this.groupBox_CacheType.Size = new System.Drawing.Size(408, 56);
this.groupBox_CacheType.TabIndex = 16;
this.groupBox_CacheType.TabStop = false;
this.groupBox_CacheType.Text = "快照类型:";
//
// radioButton_CacheTypeKB
//
this.radioButton_CacheTypeKB.Location = new System.Drawing.Point(96, 24);
this.radioButton_CacheTypeKB.Name = "radioButton_CacheTypeKB";
this.radioButton_CacheTypeKB.Size = new System.Drawing.Size(80, 24);
this.radioButton_CacheTypeKB.TabIndex = 1;
this.radioButton_CacheTypeKB.Text = "知识库";
//
// radioButton_CacheTypeNormal
//
this.radioButton_CacheTypeNormal.Location = new System.Drawing.Point(16, 24);
this.radioButton_CacheTypeNormal.Name = "radioButton_CacheTypeNormal";
this.radioButton_CacheTypeNormal.Size = new System.Drawing.Size(64, 24);
this.radioButton_CacheTypeNormal.TabIndex = 0;
this.radioButton_CacheTypeNormal.Text = "通用";
//
// checkBox_EnableCache
//
this.checkBox_EnableCache.Location = new System.Drawing.Point(16, 32);
this.checkBox_EnableCache.Name = "checkBox_EnableCache";
this.checkBox_EnableCache.Size = new System.Drawing.Size(152, 24);
this.checkBox_EnableCache.TabIndex = 15;
this.checkBox_EnableCache.Text = "启用快照功能";
this.checkBox_EnableCache.CheckedChanged += new System.EventHandler(this.checkBox_EnableCache_CheckedChanged);
//
// button_CacheDirectory
//
this.button_CacheDirectory.Location = new System.Drawing.Point(368, 72);
this.button_CacheDirectory.Name = "button_CacheDirectory";
this.button_CacheDirectory.Size = new System.Drawing.Size(56, 24);
this.button_CacheDirectory.TabIndex = 14;
this.button_CacheDirectory.Text = "选择";
this.button_CacheDirectory.Click += new System.EventHandler(this.button_CacheDirectory_Click);
//
// textBox_CacheDirectory
//
this.textBox_CacheDirectory.Location = new System.Drawing.Point(104, 72);
this.textBox_CacheDirectory.Name = "textBox_CacheDirectory";
this.textBox_CacheDirectory.Size = new System.Drawing.Size(256, 21);
this.textBox_CacheDirectory.TabIndex = 13;
this.textBox_CacheDirectory.Text = "";
//
// label_CacheDirectory
//
this.label_CacheDirectory.AutoSize = true;
this.label_CacheDirectory.Location = new System.Drawing.Point(16, 72);
this.label_CacheDirectory.Name = "label_CacheDirectory";
this.label_CacheDirectory.Size = new System.Drawing.Size(85, 17);
this.label_CacheDirectory.TabIndex = 12;
this.label_CacheDirectory.Text = "快照存放目录:";
//
// tabPage_IFilter
//
this.tabPage_IFilter.Controls.Add(this.label1);
this.tabPage_IFilter.Controls.Add(this.button_IFilter_Delelt);
this.tabPage_IFilter.Controls.Add(this.button_IFilter_Add);
this.tabPage_IFilter.Controls.Add(this.listView_IFilter);
this.tabPage_IFilter.Location = new System.Drawing.Point(4, 21);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -