public ScratchAreaController(SaveableClipboard clipboard)
        {
            this.clipboard = clipboard;

            rootFolder = new ScratchAreaRootFolder("Scratch Area", MedicalConfig.UserDocRoot);
            rootFolder.loadInfo();
        }
예제 #2
0
        public void loadInfo()
        {
            String path = FilesystemPath;

            foreach (String directory in Directory.GetDirectories(path, "*", SearchOption.TopDirectoryOnly))
            {
                DirectoryInfo info = new DirectoryInfo(directory);
                if ((info.Attributes & FileAttributes.Hidden) == 0)
                {
                    ScratchAreaFolder folder = addFolder(info.Name);
                    folder.loadInfo();
                }
            }

            foreach (String file in Directory.GetFiles(path, "*.sav", SearchOption.TopDirectoryOnly))
            {
                addExistingItem(Path.GetFileNameWithoutExtension(file));
            }
        }