private void onDbInstallBatchComplete(object sender, InstallCompleteEventArgs e) { if (this.InvokeRequired) { this.Invoke(new InstallCompleteEventHandler(onDbInstallBatchComplete), new object[] { sender, e }); } else { progressBarBatch.Value = 0; } }
private void onDbInstallComplete(object sender, InstallCompleteEventArgs e) { if (this.InvokeRequired) { this.Invoke(new DBInstaller.InstallCompleteEventHandler(onDbInstallComplete), new object[] { sender, e }); } else { progressBar.Position = 0; } }
private void onDbInstallComplete(object sender, InstallCompleteEventArgs e) { if (this.InvokeRequired) { this.Invoke(new InstallCompleteEventHandler(onDbInstallComplete), new object[] { sender, e }); } else { progressBar.Value = 0; canClose = true; enableControls(true); if (!e.Success) if (MessageBox.Show(res.FrmMain_installDBErrorMsg, res.FrmMain_installDBErrorMsgCaption, MessageBoxButtons.YesNo, MessageBoxIcon.Error) == DialogResult.Yes) saveLog(); if (immediatelyRun && closeAfterRun) Application.Exit(); } }
private void onDbInstallComplete(object sender, InstallCompleteEventArgs e) { if (this.InvokeRequired) { this.Invoke(new InstallCompleteEventHandler(onDbInstallComplete), new object[] { sender, e }); } else { operationComplite(e.Success, res.FrmMain_installDBErrorMsg, res.FrmMain_installDBErrorMsgCaption); } }