/// <summary> /// Starts the wait message by the UI. The view needs to check every <c>checkInterval</c> /// that the work was completed (using <c>HasFinishedWork()</c> method). /// The work should finish in shouldWaitFor, but there is no gurantee about it. /// <c>EndWait</c> is called to end the wait. /// </summary> /// <param name="waitMessage">The Wait message.</param> /// <param name="checkInterval">Check interval.</param> /// <param name="shouldWaitFor">Should wait for.</param> public void StartWait(string waitMessage, int checkInterval, int shouldWaitFor) { wait = new Wait(waitMessage, checkInterval, shouldWaitFor); wait.ShowDialog(this); }
public void EndWait(string endMessage) { wait.Close(); wait.Dispose(); wait = null; ux_StatusBarMessages.Text = endMessage; }