📄 frmrankurllister.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Collections;
using SECompare.Kernel;
namespace SECompare.Forms
{
public partial class FrmRankURLLister : Form
{
private RankURLLister lister;
public FrmRankURLLister()
{
InitializeComponent();
}
private void btnStart_Click(object sender, System.EventArgs e)
{
//Ensure Engines have been selected.
if (this.EngineList.SelectedEngine == null)
{
MessageBox.Show("Please select engine!", "Setting Error");
return;
}
if (!Directory.Exists(this.QueryRoot.SelectedPath)
|| !Directory.Exists(this.QueryURLRoot.SelectedPath))
{
MessageBox.Show("Please select correct folder!", "Setting Error");
return;
}
this.lister = new RankURLLister(this.EngineList.SelectedEngine,
Convert.ToInt32(this.txtRankStart.Text),
Convert.ToInt32(this.txtRankLength.Text),
this.QueryRoot.SelectedPath,
this.QueryURLRoot.SelectedPath);
this.lister.Start();
this.threadMsgMonitor.Title = "Listing Ranked URL";
this.threadMsgMonitor.ThreadStatus = this.lister;
this.threadMsgMonitor.StartButton = this.btnStart;
this.threadMsgMonitor.Start();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -