public void Main() { this.app = new ApplicationLayer(); this.ui = new PresentationLayer(app); this.file = new PersistencyLayer(); BuildMenu(); Menu currentMenu = mainMenu; while (running) { MenuEntry choice = Navigate(currentMenu); if (choice is Menu) { currentMenu = (Menu)choice; } if (choice is Option) { Option pick = (Option)choice; pick.Perform(); } } }
public void OptionLoadSession(uiListable session) { app = file.Load((Session)session); ui = new PresentationLayer(app); }