Acrolinx.Sdk.Sidebar.AcrolinxSidebar.SetDefaultForSidebarLocationAndShowServerSelectorIfLocationNotSet C# (CSharp) Метод

SetDefaultForSidebarLocationAndShowServerSelectorIfLocationNotSet() приватный Метод

private SetDefaultForSidebarLocationAndShowServerSelectorIfLocationNotSet ( string serverAddress ) : void
serverAddress string
Результат void
        private void SetDefaultForSidebarLocationAndShowServerSelectorIfLocationNotSet(string serverAddress)
        {
            if (string.IsNullOrWhiteSpace(this.SidebarSourceLocation))
            {
                if (!string.IsNullOrWhiteSpace(serverAddress))
                {
                    this.SidebarSourceLocation = getServerAddress(serverAddress) + defaultSidebarServerLocation;
                }
                else
                {
                    this.SidebarSourceLocation = defaultSidebarUrl;
                    ShowServerSelectorIfServerAddressNotSet();
                }
            }
        }