コード例 #1
0
ファイル: Controller.cs プロジェクト: Isodome/MovieRack
        public Controller(App app)
        {
            this.app = app;
            this.app.Exit += aboutToExit;
            initializeModel();
            initializeGUI();
            controller = this;
            ServicePointManager.DefaultConnectionLimit = 65000;

            if (System.Environment.MachineName.Equals("DOMI-PC")) {
                ThreadStart ts = () => {
                    SerialBoxOfficeMovieParser b = new SerialBoxOfficeMovieParser("titanic");
                    b.run();
                    b.getResult().printToConsole();
                    b = new SerialBoxOfficeMovieParser("abduction11");
                    b.run();
                    b.getResult().printToConsole();
                    b = new SerialBoxOfficeMovieParser("inception");
                    b.run();
                    b.getResult().printToConsole();
                };
                (new Thread(ts)).Start();
            } else {
                Console.WriteLine("Nicht auf DOMI-PC sonder auf {0}, deswegen jetzt kein BO Parsen", System.Environment.MachineName);
            }
        }
コード例 #2
0
 public ListViewController(Controller c, SQLiteConnector db)
 {
     this.controller = c;
     this.db = db;
     lvPController = new ListViewPersonController(db, this);
     lvMController = new ListViewMovieController(db, this);
     lvM = new ListViewMovieInfo(lvMController);
     lvP = new ListViewPersonInfo(lvPController);
     lvMController.setView(lvM);
     lvPController.setView(lvP);
 }
コード例 #3
0
ファイル: GUI.cs プロジェクト: Isodome/MovieRack
 public GUI(WinMovieRack.Controller.Controller c, MainWindow mw, IMDBBrowser browser, DetailsView dv, ActorsView av, ListView lv,TodoList todoList)
 {
     this.controller = c;
     this.imdbBrowser = browser;
     this.mainWindow = mw;
     this.detailsView = dv;
     this.actorsView = av;
     this.listView = lv;
     this.todoList = todoList;
     mainWindow = mw;
     mainWindow.Show();
 }
コード例 #4
0
 public TodoListController(Controller c, SQLiteConnectorTodo dbTodo)
 {
     this.controller = c;
     this.dbTodo = dbTodo;
 }
コード例 #5
0
 public DetailsViewController(Controller c, SQLiteConnector db)
 {
     this.controller = c;
     this.db = db;
 }
コード例 #6
0
 public void setMainWindow(Controller c, MainWindow mw)
 {
     this.mainWindow = mw;
     this.controller = c;
 }
コード例 #7
0
 public ImdbBrowserController(Controller c)
 {
     this.controller = c;
 }
コード例 #8
0
 public ActorsViewController(Controller c, SQLiteConnector db)
 {
     this.db = db;
     this.controller = c;
 }