private void ACM_DBCreateOp_Click(object sender, EventArgs e) { if (GeneralHelpler.ConfirmQuestionOperate("确定要重新生成数据库数据?重新生成后原设置将丢失!") == DialogResult.OK) { try { backgroundWorker1.DoWork += new DoWorkEventHandler(ACM_DBCreate); f_Progress.MsgText("重新生成数据库数据"); backgroundWorker1.RunWorkerAsync(); f_Progress.ShowDialog(this); } finally { backgroundWorker1.DoWork -= new DoWorkEventHandler(ACM_DBCreate); } } }
private void azCdgnDBSchema1_Atk_CurrentCreateCode(object sender, EventArgs e) { if (GeneralHelpler.ConfirmQuestionOperate("确定生成当前项代码!") == DialogResult.OK) { try { backgroundWorker1.DoWork += new DoWorkEventHandler(CreateCodeBathOne); f_Progress.MsgText("生成当前项代码"); backgroundWorker1.RunWorkerAsync(); f_Progress.ShowDialog(this); } finally { backgroundWorker1.DoWork -= new DoWorkEventHandler(CreateCodeBathOne); } } }