コード例 #1
0
        private FileManipulation(FormMain globalFormMain)
        {
            _globalFormMain = globalFormMain;

            CreateMainFolderAndPathsExeLocation();

            MoveOldStroopVersion();

            CreateSubFolders(_reactionTestFilesPath);
            CreateSubFolders(_stroopTestFilesPath);
            CreateSubFolders(_experimentTestFilesPath);
            CreateSubFolders(_matchingTestFilesPath);

            CreateFolder(_listFolderName);
            CreateFolder(_participantDataPath);

            CreateBackupFolders();

            if (Directory.Exists(_defaultPath + "/StroopTestFiles"))
            {
                Directory.Delete(_defaultPath + "/StroopTestFiles", true);
            }

            // converting old implementations of file lists to new version
            StrList.convertFileLists();

            // create default stroop and reaction programs, adding default word and color lists
            InitializeDefaultPrograms();
        }
コード例 #2
0
        private FileManipulation(string path)
        {
            _globalFormMain = null;

            CreateMainFolderAndPaths(path);

            MoveOldStroopVersion();

            CreateSubFolders(_reactionTestFilesPath);
            CreateSubFolders(_stroopTestFilesPath);
            CreateSubFolders(_experimentTestFilesPath);
            CreateSubFolders(_matchingTestFilesPath);

            /* creating Lists folder*/

            CreateFolder(_listFolderName);
            CreateFolder(_participantDataPath);
            // converting old implementations of file lists to new version
            StrList.convertFileLists();

            // create default stroop and reaction programs, adding default word and color lists
            InitializeDefaultPrograms();
        }