private bool filesHasNoDepedency() { if (mode == 'r' && destinationFilesList.Items.Count > 0) { for (int count = 0; count < destinationFilesList.Items.Count; count++) { if (this.type == LocRM.GetString("experiment")) { ExperimentProgram experiment = new ExperimentProgram(); experiment.ExperimentName = Path.GetFileNameWithoutExtension(destinationFilesList.Items[count].ToString()); try { experiment.ReadProgramFile(true); } catch (MissingMemberException e) { MessageBox.Show(e.Message + " " + LocRM.GetString("cantBeFoundPleaseRocoverFirst", currentCulture) + destinationFilesList.Items[count].ToString() + ")"); return(false); } catch (FileNotFoundException e) { MessageBox.Show(LocRM.GetString("cannotRecoverFilesByMotive", currentCulture) + destinationFilesList.Items[count].ToString() + "\":\n" + e.Message); return(false); } } else { if (type == LocRM.GetString("stroopTest", currentCulture)) { StroopProgram program = new StroopProgram(); try { program.readProgramBackUpFile(destinationFilesList.Items[count].ToString()); } catch (FileNotFoundException e) { MessageBox.Show(LocRM.GetString("cannotRecoverFilesByMotive", currentCulture) + destinationFilesList.Items[count].ToString() + "\":\n" + e.Message); return(false); } } else if (type == LocRM.GetString("reactionTest", currentCulture)) { ReactionProgram program = new ReactionProgram(); try { program.readImportProgramFile(destinationFilesList.Items[count].ToString()); } catch (FileNotFoundException e) { MessageBox.Show(LocRM.GetString("cannotRecoverFilesByMotive", currentCulture) + destinationFilesList.Items[count].ToString() + "\":\n" + e.Message); return(false); } } else if (type == LocRM.GetString("matchingTest", currentCulture)) { MatchingProgram program = new MatchingProgram(); try { program.configureReadProgram(FileManipulation._matchingTestFilesBackupPath + destinationFilesList.Items[count].ToString() + ".prg"); } catch (FileNotFoundException e) { MessageBox.Show(LocRM.GetString("cannotRecoverFilesByMotive", currentCulture) + destinationFilesList.Items[count].ToString() + "\":\n" + e.Message); return(false); } } } } } return(true); }