/// <summary> /// Sets the new status message in the status bar. /// </summary> /// <param name="message">New message to be displayed</param> /// <param name="isAnimated">Flag to indicate whether the old status message /// should be animated when it fades out</param> public void SetStatus(string message, bool isAnimated) { lock (_syncObject) { if (SyncLatest) { _msgToProcess.Update(message, isAnimated); } else { messageQueue.Enqueue(new StatusMessage(message, isAnimated)); } } PreProcess(); }