Esempio n. 1
0
        private void InsertStudentButtonClicked_Click(object sender, EventArgs e)
        {
            Student newStudent = new Student()
            {
                Name      = textBoxStudentName.Text,
                StudentID = int.Parse(textBoxStudentID.Text)
            };

            StudentMapper.CreateStudent(newStudent);
            UpdateStudentsList(StudentMapper.ReadAllStudents());
        }