예제 #1
0
        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();
                }
            }
        }
예제 #2
0
 public void OptionLoadSession(uiListable session)
 {
     app = file.Load((Session)session);
     ui  = new PresentationLayer(app);
 }