Ejemplo n.º 1
0
        public async Task <StorageFolder> InitialFolderStackAsync(string token, UIFieldAddressBar bar)
        {
            var destFolder = await this.RetrieveFromFutureAccessListAsync(token);

            this.InitialFolderStackAsync(destFolder, bar);
            return(destFolder);
        }
Ejemplo n.º 2
0
        public async void InitialFolderStackAsync(StorageFolder destFolder, UIFieldAddressBar bar)
        {
            // Configure folder Stack
            folderStack.Clear();

            var parentFolder = destFolder;
            List <StorageFolder> parentFolders = new List <StorageFolder> {
                parentFolder
            };

            while (true)
            {
                parentFolder = await parentFolder.GetParentAsync();

                if (parentFolder is null)
                {
                    break;
                }
                else
                {
                    parentFolders.Add(parentFolder);
                }
            }

            parentFolders.Reverse();
            parentFolders.ForEach(p => folderStack.Push(p));

            // Configure Address Bar
            this.addressBar     = bar;
            addressBar.FLAgency = this;
            addressBar.InitialAddressStack(folderStack);
        }