Exemplo n.º 1
0
        private void NewAssignment()
        {
            Assignment       assignment;
            AskDetailsUtils  d = new AskDetailsUtils();
            InsertQueryUtils i = new InsertQueryUtils();

            assignment = d.GetAssignmentDetails();
            i.InsertAssignment(assignment.Title, assignment.Description, assignment.SubDateTime, assignment.OralMark, assignment.TotalMark);
        }
Exemplo n.º 2
0
        private void NewTrainer()
        {
            Trainer          trainer = new Trainer();
            AskDetailsUtils  d       = new AskDetailsUtils();
            InsertQueryUtils i       = new InsertQueryUtils();

            trainer = d.GetTrainerDetails();
            i.InsertTrainer(trainer.FirstName, trainer.LastName, trainer.Subject);
        }
Exemplo n.º 3
0
        private void NewCourse()
        {
            Course           course;
            AskDetailsUtils  d = new AskDetailsUtils();
            InsertQueryUtils i = new InsertQueryUtils();

            course = d.GetCourseDetails();
            i.InsertCourse(course.Title, course.StartDate, course.EndDate, course.Type, course.Stream);
        }
Exemplo n.º 4
0
        private void NewStudent()
        {
            AskDetailsUtils adu = new AskDetailsUtils();
            Student         s   = new Student();

            s = adu.GetStudentDetails();
            InsertQueryUtils iq = new InsertQueryUtils();

            iq.InsertStudent(s.FirstName, s.LastName, s.DateOfBirth, s.TuitionFees);
        }