示例#1
0
        public override object Clone()
        {
            CDRomFile file = new CDRomFile();

            CloneMembers(file);
            return(file);
        }
示例#2
0
        private void LoadAllData()
        {
            IsFolderLoaded = false;
            IsFileLoaded   = false;

            RunOnUIThread(() =>
            {
                this.Folders.Clear();
                this.Files.Clear();
            });

            var             item       = GetFristItem(this.CurrentFolder);
            IList <IFolder> folderList = new List <IFolder>();
            IList <IFile>   fileList   = new List <IFile>();

            while (!item.IsNull())
            {
                if (GetIsFolder(item))
                {
                    CDRomFolder folder = new CDRomFolder(item, this);
                    folderList.Add(folder);
                }
                else
                {
                    CDRomFile file = new CDRomFile(item, this);
                    fileList.Add(file);
                }
                item = GetNextItem(item);
            }

            IsFolderLoaded = AddItemsByChunk(SetFolderOrder(folderList), this.Folders, this.Items);
            IsFileLoaded   = AddItemsByChunk(SetFileOrder(fileList), this.Files, this.Items);
        }