Exemple #1
0
        private void openButton_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();

            openFileDialog.Filter = "ZIP|*.zip";

            if (openFileDialog.ShowDialog() == DialogResult.OK)
            {
                originDataGridView.Rows.Clear();
                importDataGridView.Rows.Clear();
                FileManipulation.CreatImportFolder();
                FileManipulation.ExtractImportFile(openFileDialog.FileName);
                fileTextBox.Text = openFileDialog.FileName;

                addFilesToOriginGrid(FileManipulation._importPath + "/StroopProgram/", LocRM.GetString("stroopTest", currentCulture), stroopPath);
                addFilesToOriginGrid(FileManipulation._importPath + "/ReactionProgram/", LocRM.GetString("reactionTest", currentCulture), reactionPath);
                addFilesToOriginGrid(FileManipulation._importPath + "/MatchingProgram/", LocRM.GetString("matchingTest", currentCulture), matchingPath);
                addFilesToOriginGrid(FileManipulation._importPath + "/ExperimentProgram/", LocRM.GetString("experiment", currentCulture), experimentPath);
                addFilesToOriginGrid(FileManipulation._importPath + "/Lists/", LocRM.GetString("lists", currentCulture), listPath);
            }
            else
            {
                /* do nothing */
            }
        }