public void SetPage(int page, Terminal terminal, CommandFactory factory) { IPagination pageMenu = (IPagination)menu; pageMenu.SetPage(page, terminal, factory); }
public ConsoleUI(CommandFactory factory) { currentMenu = new MainMenu(factory); previousMenu = null; }