public void Update( string message, int totalSteps, int currentStep, string progressText = null, string statusBarText = null, bool disableCancel = false) { ThreadHelper.ThrowIfNotOnUIThread(); if (!Running) { return; } int res = VsWaitDialog.UpdateProgress(message, progressText, statusBarText, currentStep, totalSteps, disableCancel, out bool canceled); if (res != VSConstants.S_OK) { return; } if (canceled) { Stop(); } }
public void Update( string updatedWaitMessage, string progressText, string statusBarText, int currentStep, int totalSteps, bool disableCancel) { if (!Running) { return; } bool canceled = false; int res = VsWaitDialog.UpdateProgress(updatedWaitMessage, progressText, statusBarText, currentStep, totalSteps, disableCancel, out canceled); if (res != VSConstants.S_OK) { return; } if (canceled) { Stop(); } }