RaumfeldNET.ContentDirectoryBrowserMulti.switchList C# (CSharp) Method

switchList() protected method

protected switchList ( ContentDirectoryMainContentType _mainContentType ) : void
_mainContentType ContentDirectoryMainContentType
return void
        protected void switchList(ContentDirectoryMainContentType _mainContentType)
        {
            String listId;

            this.setListIdFromMainContentType(mainContentType, currentListId);
            listId = this.getListIdFromMainContentType(_mainContentType);
            if (this.getList(listId) != null)
            {
                currentContainerId = this.getList(listId).containerId;
                currentListId = listId;
            }
            else
            {
                currentContainerId = "";
                currentListId = "";
            }

            if (String.IsNullOrWhiteSpace(currentContainerId))
                this.browseToMainContentType(_mainContentType);
            else
                this.eventListDataReady(currentListId);
        }