///-------------------------------------------------------------------------------- /// <summary>This method displays a message in the status area.</summary> /// /// <param name="statusMessage">The message to show.</param> /// <param name="appendMessage">Flag indicating whether message should be appended to existing message.</param> ///-------------------------------------------------------------------------------- public void ShowStatus(string statusMessage, bool appendMessage) { int frozen; StatusBar.IsFrozen(out frozen); if (frozen == 0) { if (appendMessage == true) { if (statusMessage != "Ready") { // add status message to job message string text; StatusBar.GetText(out text); if (text != String.Empty) { text = "; " + text; } StatusBar.SetText(statusMessage + text); StatusBar.FreezeOutput(0); } } else { // replace status message with current message StatusBar.SetText(statusMessage); StatusBar.FreezeOutput(0); } } }