Exemplo n.º 1
0
        /// <summary>
        /// 全局对比
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btn_ComparisonAll_Click(object sender, EventArgs e)
        {
            this.backgroundWorker1.RunWorkerAsync();                            //运行backgroundWorker组件
            FrmProgressForm form = new FrmProgressForm(this.backgroundWorker1); //显示进度条窗体

            form.ShowDialog(this);
            form.Close();
        }
        /// <summary>
        /// 页面加载事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FrmReleaseBuild_Load(object sender, EventArgs e)
        {
            this.backgroundWorker1.RunWorkerAsync();                            //运行backgroundWorker组件
            FrmProgressForm form = new FrmProgressForm(this.backgroundWorker1); //显示进度条窗体

            form.ShowDialog(this);
            form.Close();
        }
Exemplo n.º 3
0
        /// <summary>
        /// 执行脚本生成
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnGenerate_Click(object sender, EventArgs e)
        {
            //清空数据
            GenerateAppendText.Clear();

            this.bgw_Generate.RunWorkerAsync();                            //运行backgroundWorker组件
            FrmProgressForm form = new FrmProgressForm(this.bgw_Generate); //显示进度条窗体

            form.ShowDialog(this);
            form.Close();
        }