示例#1
0
        public static bool GetDirectoryNode(out TreeNode nodes)
        {
            nodes = new TreeNode();
            if (disk == null || disk.Format == MFS.DiskFormat.Invalid)
            {
                return(false);
            }

            nodes                    = GetDirectoryTreeNode(MFSRAMUtil.GetDirectoryFromID(disk, 0));
            nodes.ImageIndex         = 0;
            nodes.SelectedImageIndex = 0;
            return(true);
        }
示例#2
0
        public static bool MoveFiles(MFSFile[] files, ushort dir)
        {
            if (disk == null || disk.Format == MFS.DiskFormat.Invalid)
            {
                return(false);
            }

            foreach (MFSFile file in files)
            {
                MFSRAMUtil.MoveFile(disk, MFSRAMUtil.GetFullPath(disk, file), MFSRAMUtil.GetFullPath(disk, MFSRAMUtil.GetDirectoryFromID(disk, dir)));
            }

            return(true);
        }