Example #1
0
        private void ExportButton_Click(object sender, EventArgs e)
        {
            SaveFileDialog dialog = new SaveFileDialog();

            dialog.Filter = "Save as |*.txt";

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                StudentFileUtil.WriteStudentDataToFile(dialog.FileName, students);
            }
        }
Example #2
0
        private void StudentExamScoreSystem_Load(object sender, EventArgs e)
        {
            students = new List <IStudent>();
            StudentFileUtil.ReadStudentDataFromFile(students);

            inputValidator = new InputValidator(this);

            ResetLabels();

            FilterHandler.System = this;
        }
Example #3
0
 private void StudentExamScoreSys_FormClosed(object sender, FormClosedEventArgs e)
 {
     ClearUserData();
     StudentFileUtil.WriteStudentDataToDefaultFile(students);
 }