Example #1
0
 public void Close()
 {
     if (this.imageCursor != null)
     {
         this.imageCursor.Close();
         this.imageCursor = null;
     }
 }
Example #2
0
        void QueryImages()
        {
            if (this.imageCursor != null)
            {
                this.imageCursor.Close();
            }

            this.imageCursor = BooruApp.BooruApplication.Database.QueryRandomImagesForVoting(this.type);
        }
Example #3
0
        public DatabaseCursor <ImageDetails> QueryImagesWithTags(string tagString)
        {
            DatabaseCursor <ImageDetails> result = null;

            BooruApp.BooruApplication.Database.Mutex.ExecuteCriticalSection(() => {
                result = Queries.Images.FindImages.Execute(tagString);
            });
            return(result);
        }
Example #4
0
        public DatabaseCursor <ImageDetails> QueryRandomImagesForVoting(BooruImageType type)
        {
            DatabaseCursor <ImageDetails> result = null;

            BooruApp.BooruApplication.Database.Mutex.ExecuteCriticalSection(() => {
                result = Queries.Images.NextVoteImages.Execute(type);
            });
            return(result);
        }