private void updateButtonBar()
{
String text;
var sortButtonText = "A-Z";
if (!_windowsList.Any())
{
text = String.Empty;
}
else if (_sortOrder == SortOrder.Ascending)
{
text = "\u003A";
sortButtonText = "A-Z";
}
else
{
text = "\u003B";
sortButtonText = "Z-A";
}
if (_sortOrderWidget != null)
{
_sortOrderWidget.SetText(text);
}
if (_sortButton != null)
{
_sortButton.SetText(sortButtonText);
}
if (_pageNumberWidget != null)
{
text = _windowsList.Any() ? string.Format(Resources.Page0Of1, (_pageNumber + 1), _numPages) : String.Empty;
_pageNumberWidget.SetText(text);
}
}