Example #1
0
        public static Student ChooseEnter(ConsoleKey key)
        {
            Student person = null; // Protect it.

            switch (key)
            {
            case ConsoleKey.D1:
                person = GetCustomStudent();
                break;

            case ConsoleKey.D2:
                person = BL.GetRandomStudent();
                break;

            default:
                break;
            }

            return(person);
        }
Example #2
0
 public static void PrintShortName(Student person)
 {
     Console.Write("Short name: {0}\n", BL.GetShortName(person));
 }
Example #3
0
 public static void PrintYear(Student person)
 {
     Console.Write("Year: {0}\n", BL.GetYear(person));
 }