// Depends on your choice, enter student's data by hand or by Random. public static void ChooseEnter(ConsoleKey key, ref Student source) { switch (key) { case ConsoleKey.D1: GetCustomStudent(ref source); break; case ConsoleKey.D2: BL.GetRandomStudent(ref source); break; default: break; } }
public static void PrintYear(Student person) { Console.Write("Year: {0}\n", BL.GetYear(person)); }
public static void PrintShortName(Student person) { Console.Write("Short name: {0}\n", BL.GetShortName(person)); }