public static void AbstractFactoryExample() { //Меню на понедельник var mondayFactory = new MondayFactory(); PrintMenu(mondayFactory); //Меню на вторник var tuesdayFactory = new TuesdayFactory(); PrintMenu(tuesdayFactory); //Меню на вторник //PrintMenu(WeekDay.Tuesday); }
static void Main(string[] args) { Runner.Run(); //Меню на понедельник var mondayFactory = new MondayFactory(); PrintMenu(mondayFactory); //Меню на вторник var tuesdayFactory = new TuesdayFactory(); PrintMenu(tuesdayFactory); //Меню на вторник //PrintMenu(DayOfWeek.Tuesday); Console.ReadKey(); }