/// <summary>
        /// 初始化组件
        /// </summary>
        private void InitializeComponent()
        {
            #region 初始化选项卡组件
            this.tabContent               = new System.Windows.Forms.TabControl();
            this.tabContent.Appearance    = System.Windows.Forms.TabAppearance.FlatButtons;
            this.tabContent.Dock          = System.Windows.Forms.DockStyle.Fill;
            this.tabContent.Location      = new System.Drawing.Point(0, 0);
            this.tabContent.Multiline     = true;
            this.tabContent.Name          = "tabContent";
            this.tabContent.SelectedIndex = 0;
            this.tabContent.Size          = new System.Drawing.Size(389, 134);
            this.tabContent.TabIndex      = 0;
            this.tabContent.ResumeLayout(false);

            TaskResultLog webPage = new TaskResultLog("SmartSpider", new List <Config.ExtractionRule>());
            webPage.Controls.Clear();
            webPage.Controls.Add(new WebBrowser()
            {
                Url  = new Uri("http://www.google.com.hk"),
                Dock = DockStyle.Fill
            });
            //加入默认选项卡
            this.tabContent.Controls.Add(webPage);
            #endregion

            livTaskView = new TaskListView();

            #region 初始化面板
            this.Panel1.SuspendLayout();
            this.Panel2.SuspendLayout();
            this.SuspendLayout();
            this.Dock        = System.Windows.Forms.DockStyle.Fill;
            this.FixedPanel  = System.Windows.Forms.FixedPanel.Panel1;
            this.Location    = new System.Drawing.Point(0, 0);
            this.Name        = "";
            this.Orientation = System.Windows.Forms.Orientation.Horizontal;

            //panel1
            this.Panel1.Controls.Add(this.livTaskView);
            this.Panel1MinSize = 150;

            // panel2
            this.Panel2.Controls.Add(this.tabContent);
            this.Panel2MinSize    = 100;
            this.Size             = new System.Drawing.Size(389, 288);
            this.SplitterDistance = 150;
            this.TabIndex         = 0;

            //挂起Panel1 and panel2
            this.Panel1.ResumeLayout(false);
            this.Panel2.ResumeLayout(false);
            this.ResumeLayout(false);
            #endregion

            #region 任务项订阅事件
            this.livTaskView.OnTaskStatusChanges   += new Config.OnTaskStatusChanges(livTaskView_OnTaskStatusChanges);
            this.livTaskView.OnTaskComplete        += new Config.OnTaskComplete(livTaskView_OnTaskComplete);
            this.livTaskView.OnTaskStart           += new Config.OnTaskStart(livTaskView_OnTaskStart);
            this.livTaskView.OnTaskPause           += new Config.OnTaskPause(livTaskView_OnTaskPause);
            this.livTaskView.OnTaskStop            += new Config.OnTaskStop(livTaskView_OnTaskStop);
            this.livTaskView.OnAppendSingileLog    += new Config.OnAppendSingileLog(livTaskView_OnAppendSingileLog);
            this.livTaskView.OnAppendSingleResult  += new Config.OnAppendSingleResult(livTaskView_OnAppendSingleResult);
            this.livTaskView.OnPublishResult       += new Config.OnPublishResult(livTaskView_OnPublishResult);
            this.livTaskView.OnShowTaskRuntimeInfo += new OnShowTaskRuntimeInfo(livTaskView_OnShowTaskRuntimeInfo);
            #endregion

            #region  项卡快捷菜单初始化
            tabContentQuickMenu = new System.Windows.Forms.ContextMenu();
            tabContentQuickMenu.MenuItems.Add(new MenuItem("关闭", new EventHandler(tabContentQuickMenu_MenuItem_Close)));
            #endregion

            #region  项卡事件订阅
            tabContent.Selected   += new TabControlEventHandler(tabContent_Selected);
            tabContent.ContextMenu = tabContentQuickMenu;
            #endregion
        }
        /// <summary>
        /// 初始化组件
        /// </summary>
        private void InitializeComponent()
        {
            #region 初始化选项卡组件
            this.tabContent = new System.Windows.Forms.TabControl();
            this.tabContent.Appearance = System.Windows.Forms.TabAppearance.FlatButtons;
            this.tabContent.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tabContent.Location = new System.Drawing.Point(0, 0);
            this.tabContent.Multiline = true;
            this.tabContent.Name = "tabContent";
            this.tabContent.SelectedIndex = 0;
            this.tabContent.Size = new System.Drawing.Size(389, 134);
            this.tabContent.TabIndex = 0;
            this.tabContent.ResumeLayout(false);

            TaskResultLog webPage = new TaskResultLog("SmartSpider", new List<Config.ExtractionRule>());
            webPage.Controls.Clear();
            webPage.Controls.Add(new WebBrowser()
            {
                Url = new Uri("http://www.google.com.hk"),
                Dock = DockStyle.Fill
            });
             //加入默认选项卡
            this.tabContent.Controls.Add(webPage);
            #endregion

            livTaskView = new TaskListView();

            #region 初始化面板
            this.Panel1.SuspendLayout();
            this.Panel2.SuspendLayout();
            this.SuspendLayout();
            this.Dock = System.Windows.Forms.DockStyle.Fill;
            this.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
            this.Location = new System.Drawing.Point(0, 0);
            this.Name = "";
            this.Orientation = System.Windows.Forms.Orientation.Horizontal;

            //panel1 
            this.Panel1.Controls.Add(this.livTaskView);
            this.Panel1MinSize = 150;

            // panel2
            this.Panel2.Controls.Add(this.tabContent);
            this.Panel2MinSize = 100;
            this.Size = new System.Drawing.Size(389, 288);
            this.SplitterDistance = 150;
            this.TabIndex = 0;

            //挂起Panel1 and panel2
            this.Panel1.ResumeLayout(false);
            this.Panel2.ResumeLayout(false);
            this.ResumeLayout(false);
            #endregion

            #region 任务项订阅事件
            this.livTaskView.OnTaskStatusChanges += new Config.OnTaskStatusChanges(livTaskView_OnTaskStatusChanges);
            this.livTaskView.OnTaskComplete += new Config.OnTaskComplete(livTaskView_OnTaskComplete);
            this.livTaskView.OnTaskStart += new Config.OnTaskStart(livTaskView_OnTaskStart);
            this.livTaskView.OnTaskPause += new Config.OnTaskPause(livTaskView_OnTaskPause);
            this.livTaskView.OnTaskStop += new Config.OnTaskStop(livTaskView_OnTaskStop);
            this.livTaskView.OnAppendSingileLog += new Config.OnAppendSingileLog(livTaskView_OnAppendSingileLog);
            this.livTaskView.OnAppendSingleResult += new Config.OnAppendSingleResult(livTaskView_OnAppendSingleResult);
            this.livTaskView.OnPublishResult += new Config.OnPublishResult(livTaskView_OnPublishResult);
            this.livTaskView.OnShowTaskRuntimeInfo +=new OnShowTaskRuntimeInfo(livTaskView_OnShowTaskRuntimeInfo);
            #endregion

            #region 选项卡快捷菜单初始化
            tabContentQuickMenu = new System.Windows.Forms.ContextMenu();
            tabContentQuickMenu.MenuItems.Add(new MenuItem("关闭", new EventHandler(tabContentQuickMenu_MenuItem_Close)));
            #endregion

            #region 选项卡事件订阅
            tabContent.Selected += new TabControlEventHandler(tabContent_Selected);
            tabContent.ContextMenu = tabContentQuickMenu;
            #endregion
        }