private void onDbInstallBatchProgress(object sender, InstallProgressEventArgs e) { if (this.InvokeRequired) { this.Invoke(new InstallProgressEventHangler(onDbInstallBatchProgress), new object[] { sender, e }); } else { progressBarBatch.Maximum = e.MaxValue; progressBarBatch.Value = e.CurrValue; } }
private void onDbInstallProgress(object sender, InstallProgressEventArgs e) { if (this.InvokeRequired) { this.Invoke(new DBInstaller.InstallProgressEventHangler(onDbInstallProgress), new object[] { sender, e }); } else { progressBar.Properties.Maximum = e.MaxValue; progressBar.Position = e.CurrValue; } }