private void frmEmailAutoMation_ProgressValueChanged(object sender, ProgressValueChangeEventArgs e) { UpdateProgressBar(pBar, e.MaxValue, e.Value); }