/// <summary> /// Refresh the current folder. Delete cached thumbnails and reload the nodes /// </summary> public void Refresh() { FileService.ClearFiles( NodeService.GetFiles(this.ChildNodes, Path.Combine(ApplicationData.Current.LocalFolder.Path, AppResources.ThumbnailsDirectory))); if (this.FolderRootNode == null) { switch (this.Type) { case ContainerType.RubbishBin: this.FolderRootNode = NodeService.CreateNew(this.MegaSdk, this.AppInformation, this.MegaSdk.getRubbishNode(), this.Type); break; case ContainerType.CloudDrive: case ContainerType.FolderLink: this.FolderRootNode = NodeService.CreateNew(this.MegaSdk, this.AppInformation, this.MegaSdk.getRootNode(), this.Type); break; } } this.LoadChildNodes(); }