コード例 #1
0
 void libraryClearer_DoWork(object sender, DoWorkEventArgs e)
 {
     ProgressDialog pd = new ProgressDialog(this.Handle);
     TraktAPI.TraktAPI.ClearLibrary(TraktAPI.TraktClearingModes.all, pd, (bool)e.Argument);
 }
コード例 #2
0
        void filtersCreator_DoWork(object sender, DoWorkEventArgs e)
        {
            ProgressDialog pd = new ProgressDialog(this.Handle);
            pd.ShowDialog();
            pd.Line1 = "Creating Filters";

            TraktHandlers.MovingPictures.CreateMovingPicturesFilters();
            //Update
            pd.Line1 = "Updating Filters";
            TraktHandlers.MovingPictures.UpdateMovingPicturesFilters();
            pd.CloseDialog();
        }