ArcGISPortalViewer.Controls.IdentifyResultsControl.UpdateSelectedItemPositionText C# (CSharp) Method

UpdateSelectedItemPositionText() private method

private UpdateSelectedItemPositionText ( ) : void
return void
        private void UpdateSelectedItemPositionText()
        {
            var total = ItemsSource != null ? ItemsSource.Count() : 0;
            var position = ItemsSource != null && SelectedItem != null ? (ItemsSource.ToList().IndexOf(SelectedItem) + 1) : 0;
            SelectedItemPositionText = string.Format(SELECTED_NUMBER_OUT_OF_TOTAL_ITEMS_FORMAT_STRING, position, total );
        }