Example #1
0
        private void mtRun_Click(object sender, EventArgs e)
        {
            MetroMsgBoxUtil.Warning(this, "该功能暂停使用", "Oops");

            //operationFlag = "excute";
            //this.metroProgressSpinner1.Visible = true;
            //backgroundWorker1.RunWorkerAsync();
        }
Example #2
0
        private void backgroundWorker1_RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e)
        {
            this.metroProgressSpinner1.Visible = false;

            this.dgvValidation.DataSource = dtFailCells;

            if (dtFailCells.Rows.Count > 0)
            {
                MetroMsgBoxUtil.Warning(this, String.Format("有 {0} 个单元格的内容未通过校验。", dtFailCells.Rows.Count), "Warning");
            }
            else
            {
                MetroMsgBoxUtil.Success(this, "数据校验通过", "Success");
            }
        }