/// <summary> /// Handles the progress method necessary to implement IProgress /// </summary> /// <param name="key">This a message with no percentage information..this is ignored</param> /// <param name="percent">The integer percentage from 0 to 100 that is used to control the progress bar</param> /// <param name="message">The actual complete message to show..this is also ignored</param> public void Progress(string key, int percent, string message) { if (InvokeRequired) { UpdateProg prg = UpdateProgress; BeginInvoke(prg, new object[] { key, percent, message }); } else { UpdateProgress(key, percent, message); } }
/// <summary> /// Handles the progress method necessary to implement IProgress. /// </summary> /// <param name="percent">The integer percentage from 0 to 100 that is used to control the progress bar</param> /// <param name="message">The actual complete message to show..this is also ignored</param> public void Progress(int percent, string message) { if (InvokeRequired) { UpdateProg prg = UpdateProgress; BeginInvoke(prg, percent, message); } else { UpdateProgress(percent, message); } }