示例#1
0
        public Engine()
        {
            this.forumViewer = new ForumViewEngine();
            this.controllers = InitializeControllers();

            this.menuController = new MenuController(this.controllers, forumViewer);
        }
示例#2
0
 public MenuController(IEnumerable <IController> controllers, ForumViewEngine forumViewer)
 {
     this.controllers = controllers.ToArray();
     this.forumViewer = forumViewer;
     InitializeControllerHistory();
     currentOptionIndex = DEFAULT_INDEX;
     RenderCurrentView();
 }
示例#3
0
        public MenuController(IEnumerable <IController> controllers, ForumViewEngine forumViewer)
        {
            _controllers = controllers.ToArray();
            _forumViewer = forumViewer;

            InitializeControllerHistory();

            _currentOptionIndex = DefaultIndex;
        }
示例#4
0
 public Engine()
 {
     _forumViewer    = new ForumViewEngine();
     _controllers    = InitializeControllers();
     _menuController = new MenuController(_controllers, _forumViewer);
 }
示例#5
0
 public Engine()
 {
     forumViewer    = new ForumViewEngine();
     controllers    = InitializeControllers();
     menuController = new MenuController(controllers, forumViewer);
 }