示例#1
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            //MOVIE LIST THINGS
            mListCurrent = MovieBL.GetAllImdbless(chkCheckPosterless.Checked).ToList( );

            //mListCurrent = new List<MovieDO> ( );
            //mListCurrent.Add ( MovieBL.GetMovie ( 1054 ) );
            //int howManyDoYouWant = 1;
            //mListCurrent.RemoveRange( howManyDoYouWant, mListCurrent.Count - howManyDoYouWant );

            mListWaiting = new List <MovieDO>( );

            //MOVIE COUNT THINGS
            mCount = mListCurrent.Count;
            parseStatus.Minimum = 0;
            parseStatus.Maximum = mCount;
            parseStatus.Value   = 0;

            //START THREAD
            Thread parseThread = new Thread(new ThreadStart(parseMovies));

            parseThread.Start( );

            setButtonEnabled(btnStart, false);
        }