private void replaceButton_Click(object sender, EventArgs e) { DataFileManager dataManager = new DataFileManager(username, testName); dataManager.updateDirectoryTests(); dataManager.writeToFile(dataManager.getFilePath(), qList, false); this.Close(); }
private void testEnd_Click(object sender, EventArgs e) { DataFileManager dataManager = new DataFileManager(username, testName); dataManager.updateDirectoryTests(); if (!dataManager.fileExists()) { dataManager.createDirectory(dataManager.getDirectoryPath()); dataManager.writeToFile(dataManager.getFilePath(), qList, true); this.Close(); } if (dataManager.fileExists()) { sameFilePanel.Show(); } }