コード例 #1
0
        public static Trainer AddTrainer()
        {
            Trainer t = new Trainer();

            t.FirstName = InputsMethods.GiveFirstName();
            t.LastName  = InputsMethods.GiveLastName();
            t.Subject   = InputsMethods.GiveSubject();
            return(t);
        }
コード例 #2
0
        //Methods to create a new object for insert to database
        public static Student AddStudent()
        {
            Student s = new Student();

            s.FirstName   = InputsMethods.GiveFirstName();
            s.LastName    = InputsMethods.GiveLastName();
            s.DateOfBirth = InputsMethods.GiveDateOfBirth();
            s.Fees        = InputsMethods.GiveFees();
            return(s);
        }
コード例 #3
0
        public static TrainerPerCourse AddTrainertPerCourse()
        {
            TrainerPerCourse tpc = new TrainerPerCourse();

            FrontEnd.PrintTrainers();
            tpc.TrainerId = InputsMethods.SelectTrainerId();
            FrontEnd.PrintCourses();
            tpc.CourseId = InputsMethods.SelectCourseId();
            return(tpc);
        }
コード例 #4
0
        public static StudentPerCourse AddStudentPerCourse()
        {
            StudentPerCourse spc = new StudentPerCourse();

            FrontEnd.PrintStudents();
            spc.StudentId = InputsMethods.SelectStudentId();
            FrontEnd.PrintCourses();
            spc.CourseId = InputsMethods.SelectCourseId();
            return(spc);
        }
コード例 #5
0
        public static Assignment AddAssignment()
        {
            Assignment a = new Assignment();

            a.Title       = InputsMethods.GiveTitle();
            a.Description = InputsMethods.GiveDescription();
            a.SubDateTime = InputsMethods.GiveSubDate();
            a.OralMark    = InputsMethods.GiveOralMark();
            a.TotalMark   = InputsMethods.GiveTotalMark();
            return(a);
        }
コード例 #6
0
        public static Course AddCourse()
        {
            Course c = new Course();

            c.Title     = InputsMethods.GiveTitle();
            c.Stream    = InputsMethods.GiveStream();
            c.Type      = InputsMethods.GiveType();
            c.StartDate = InputsMethods.GiveStartDate();
            c.EndDate   = InputsMethods.GiveEndDate();
            return(c);
        }
コード例 #7
0
        public static AssignmentPerStudentPerCourse AddAssignmentPerCourse()
        {
            AssignmentPerStudentPerCourse apc = new AssignmentPerStudentPerCourse();

            FrontEnd.PrintAssignments();
            apc.AssignemntId = InputsMethods.SelectAssignmentId();
            FrontEnd.PrintCourses();
            apc.CourseId = InputsMethods.SelectCourseId();
            FrontEnd.PrintStudents();
            apc.StudentId = InputsMethods.SelectStudentId();
            return(apc);
        }