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); } }
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); }
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(); }
public TodoListController(Controller c, SQLiteConnectorTodo dbTodo) { this.controller = c; this.dbTodo = dbTodo; }
public DetailsViewController(Controller c, SQLiteConnector db) { this.controller = c; this.db = db; }
public void setMainWindow(Controller c, MainWindow mw) { this.mainWindow = mw; this.controller = c; }
public ImdbBrowserController(Controller c) { this.controller = c; }
public ActorsViewController(Controller c, SQLiteConnector db) { this.db = db; this.controller = c; }