/// <summary> /// Updates the percent, then calls the stored progress object's "Report" /// </summary> /// <param name="pct">percent progress, 0 to 100</param> /// <param name="newStatus">Updated status string, null for no update</param> public void Report(double pct, string newStatus = null) { if (pct > 100) { pct = 100; } // drop large spikes that may have been triggered by multithreading if (_useForwardOnlyLogic && pct - _percent > 70 && !(pct.Equals(0.0) && _percent.Equals(100.0))) { pct = _percent; } Percent = pct; if (newStatus != null) { Status = newStatus; } ProgressObj.Report(this); }
/// <summary> /// Updates the percent, then calls the stored progress object's "Report" /// </summary> /// <param name="pct">percent progress, 0 to 100</param> public void Report(double pct) { Percent = pct; ProgressObj.Report(this); }
/// <summary> /// Updates the status, then calls the stored progress object's "Report" /// </summary> /// <param name="newStatus">Updated status string</param> public void Report(string newStatus) { Status = newStatus; ProgressObj.Report(this); }