Dev2.Runtime.Configuration.ComponentModel.ComputerDrive.LoadDrivesOrDirectories C# (CSharp) Method

LoadDrivesOrDirectories() private method

private LoadDrivesOrDirectories ( string currentTitle ) : void
currentTitle string
return void
        private void LoadDrivesOrDirectories(string currentTitle)
        {
            using(var wc = new WebClient())
            {
                wc.OpenReadCompleted += ChildrenReadCompleted;
                Uri webUri;
                if(string.IsNullOrEmpty(currentTitle) || currentTitle.Equals("/"))
                {
                    webUri = GetDriveUri();
                }
                else
                {
                    webUri = GetDirectoryUri(currentTitle);
                }
                wc.OpenReadAsync(webUri);
            }
        }