Ejemplo n.º 1
0
 public void startFillout()
 {
     int idMovies;
     SQLiteConnector.db.testAndSetMovies(imdbid, out idMovies);
     ConcurrentImdbMovieParser p = new ConcurrentImdbMovieParser(imdbid);
     p.setFinalizeFunction(this.parseNames);
     ThreadsMaster.getInstance().addJobMaster(p);
 }
Ejemplo n.º 2
0
        private void imdbWebBrowser_Navigating(object sender, NavigatingCancelEventArgs e)
        {
            string url = e.Uri.ToString();
            if (!Regex.Match(url, @"imdb\.com").Success) {
                imdbWebBrowser.Navigate(lastURL);
                return;
            }
            setButton("add", false);
            lastParser = null;
            lastURL = url;

            if (IMDBUtil.isMovieUrl(url)) {
                ConcurrentImdbMovieParser parser = new ConcurrentImdbMovieParser(IMDBUtil.getTitleIdFromUrl(url));
                parser.setFinalizeFunction(this.updateActionButton);
                ThreadsMaster.getInstance().addVeryVeryImportantThreadMaster(parser);
            } else if (IMDBUtil.isNameURL(url)) {
                ConcurrentIMDBNameParser parser = new ConcurrentIMDBNameParser(IMDBUtil.getNameIdFromUrl(url));
                parser.setFinalizeFunction(this.updateActionButton);
                ThreadsMaster.getInstance().addVeryVeryImportantThreadMaster(parser);
            } else {
                updateActionButton(null);
            }
        }
Ejemplo n.º 3
0
 public TestJob(ConcurrentImdbMovieParser parent, uint nr)
 {
     this.nr = nr;
     this.parent = parent;
 }