ACAT.Extensions.Default.FunctionalAgents.LaunchAppAgent.LaunchAppScanner.updateButtonBar C# (CSharp) Method

updateButtonBar() private method

Updates the buttons on the button bar depending on the current state
private updateButtonBar ( ) : void
return void
        private void updateButtonBar()
        {
            String text;
            var sortButtonText = "A-Z";
            if (!_appsList.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 = _appsList.Any() ? string.Format(Resources.Page0Of1, (_pageNumber + 1), _numPages) : String.Empty;
                _pageNumberWidget.SetText(text);
            }
        }