Beispiel #1
0
        private void replaceButton_Click(object sender, EventArgs e)
        {
            DataFileManager dataManager = new DataFileManager(username, testName);

            dataManager.updateDirectoryTests();
            dataManager.writeToFile(dataManager.getFilePath(), qList, false);
            this.Close();
        }
Beispiel #2
0
        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();
            }
        }