/// <summary> /// Консольный вывод. /// </summary> /// <param name="printer">Консольный принтер</param> private void ConsolePrint(IConsoleSchedulePrinter <Meeting> printer) { try { if (_schedule.Count() == 0) { Console.WriteLine("Расписание пусто!"); } else { Console.WriteLine("Введите дату"); DateTime day = DateTime.Parse(Console.ReadLine()); _schedule.ConsolePrint(printer, day); } } catch (FormatException) { Console.WriteLine("Введены некорректные данные!"); } catch (Exception e) { Console.WriteLine(e.Message); } }