private void UpdateProgressBar(InstallStatus opProg, TextProgressBar bar) { bar.Maximum = opProg.ItemsTotal; bar.Value = opProg.ItemsDone; bar.CustomText = opProg.CurrentOperation; }