예제 #1
0
        private void initializeGUI()
        {
            browserController = new ImdbBrowserController(this);
            IMDBBrowser browser = new IMDBBrowser(browserController);
            browserController.setBrowser(browser);

            todoListController = new TodoListController(this, dbTodo);
            TodoList todoList = new TodoList(todoListController);
            todoListController.setTodoList(todoList);

            windowController = new MainWindowController();
            MainWindow mw = new MainWindow(windowController);
            mw.Width = 1024;
            mw.Height = 600;
            windowController.setMainWindow(this, mw);

            detailsViewController = new DetailsViewController(this, db);
            DetailsView dv = new DetailsView(detailsViewController);
            detailsViewController.setDetailsView(dv);
            detailsViewController.loadCompleteMovieList();

            actorsViewController = new ActorsViewController(this, db);
            ActorsView av = new ActorsView(actorsViewController);
            actorsViewController.setActorsView(av);

            listViewController = new ListViewController(this, db);
            ListView lv = new ListView(listViewController);
            listViewController.setListView(lv);

            gui = new WinMovieRack.GUI.GUI(this, mw, browser, dv, av, lv, todoList);
        }
예제 #2
0
 public TodoList(TodoListController contr)
 {
     InitializeComponent();
     this.controller = contr;
 }