ACAT.Extensions.Default.FunctionalAgents.FileBrowserAgent.FileBrowserScanner.updateStatusBar C# (CSharp) Method

updateStatusBar() private method

Updates the status bar with the current sort order
private updateStatusBar ( ) : void
return void
        private void updateStatusBar()
        {
            var text = String.Empty;

            if (!_fileList.Any())
            {
                _statusBarPanelSort.Text = String.Empty;
                return;
            }

            switch (_sortOrder)
            {
                case SortOrder.AtoZ:
                    text = Resources.SortOrderALPHABETICAL;
                    break;

                case SortOrder.ZtoA:
                    text = Resources.SortOrderREVERSEALPHABETICAL;
                    break;

                case SortOrder.DateAscending:
                    text = Resources.SortOrderCHRONOLOGICAL;
                    break;

                case SortOrder.DateDescending:
                    text = Resources.SortOrderREVERSECHRONOLOGICAL;
                    break;
            }

            _statusBarPanelSort.Text = text;
        }
    }