/// <summary> /// Set the status bar text for the total count. (Thread Safe) /// </summary> /// <param name="count">Total number of hits</param> /// <history> /// [Curtis_Beard] 01/27/2007 Created /// </history> private void SetStatusBarTotalCount(int count) { if (stbStatus.InvokeRequired) { UpdateStatusCountCallBack _delegate = new UpdateStatusCountCallBack(SetStatusBarTotalCount); stbStatus.Invoke(_delegate, new object[1] { count }); return; } sbTotalCountPanel.Text = string.Format(Language.GetGenericText("ResultsStatusTotalCount"), count); }
/// <summary> /// Set the status bar text for the filter count. (Thread Safe) /// </summary> /// <param name="count">Total number of filtered items</param> /// <history> /// [Curtis_Beard] 09/26/2012 Created /// [Curtis_Beard] 10/22/2012 CHG: use yellow background color to alert user /// </history> private void SetStatusBarFilterCount(int count) { if (stbStatus.InvokeRequired) { UpdateStatusCountCallBack _delegate = new UpdateStatusCountCallBack(SetStatusBarFilterCount); stbStatus.Invoke(_delegate, new object[1] { count }); return; } sbFilterCountPanel.Text = string.Format(Language.GetGenericText("ResultsStatusFilterCount"), count); sbFilterCountPanel.BackColor = count > 0 ? Color.Yellow : SystemColors.Window; }