frmrankurllister.cs

来自「用C#编写的一个款搜索engine的源代码!摘自<Visual c#200」· CS 代码 · 共 51 行

CS
51
字号
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 + =
减小字号Ctrl + -
显示快捷键?