Exemple #1
0
        public static void CreateAssignmentPerCourse()
        {
            //Console.WriteLine("Assignments: ");
            //foreach (var assignment in AssignmentManager.GetAllAssignments(id))
            //{
            //    Console.WriteLine(assignment);
            //}
            //Console.WriteLine("Assign Course: ");
            //foreach (var course in CourseManager.CreateCourse())

            Console.WriteLine("Give a title: ");
            string title = Console.ReadLine();

            Console.WriteLine("Give a description: ");
            string descprition = Console.ReadLine();

            Console.WriteLine("Give submission date and time: ");
            DateTime submission = Convert.ToDateTime(Console.ReadLine());

            Console.WriteLine("Give an oral mark: ");
            int oralmark = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine("Give a total mark: ");
            int totalmark = Convert.ToInt32(Console.ReadLine());

            AssignmentManager.CreateAssignment(title, descprition, submission, oralmark, totalmark);
        }
Exemple #2
0
        public static void Delete()
        {
            Console.WriteLine("Delete assignment: ");
            int id = Convert.ToInt32(Console.ReadLine());

            AssignmentManager.DeleteAssignment(id);
        }
Exemple #3
0
 public static void View()
 {
     Console.WriteLine("assignments: ");
     foreach (var assignment in AssignmentManager.GetAllAssignments())
     {
         Console.WriteLine(assignment);
     }
 }
Exemple #4
0
        public static void Add()
        {
            Console.WriteLine("Give a title: ");
            string title = Console.ReadLine();

            Console.WriteLine("Give a description: ");
            string descprition = Console.ReadLine();

            Console.WriteLine("Give submission date and time: ");
            DateTime submission = Convert.ToDateTime(Console.ReadLine());

            Console.WriteLine("Give an oral mark: ");
            int oralmark = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine("Give a total mark: ");
            int totalmark = Convert.ToInt32(Console.ReadLine());

            AssignmentManager.CreateAssignment(title, descprition, submission, oralmark, totalmark);
        }