Exemple #1
0
        //((FileSysEmulator.FsContainer)item.Parent).RemoveItem( item );
        private void RemoveItem(FileSystemItem item)
        {
            if (item is FsRoot)
            {
                throw new ApplicationException("Cant' remove file system root.");
            }
            if (item is FsDrive)
            {
                throw new ApplicationException("Cant' remove file system drive.");
            }

            FsContainer cont = (FsContainer)item.Parent;

            cont.RemoveItem(item);
        }