Exemplo n.º 1
0
 public void Close()
 {
     if (this.imageCursor != null)
     {
         this.imageCursor.Close();
         this.imageCursor = null;
     }
 }
Exemplo n.º 2
0
        void QueryImages()
        {
            if (this.imageCursor != null)
            {
                this.imageCursor.Close();
            }

            this.imageCursor = BooruApp.BooruApplication.Database.QueryRandomImagesForVoting(this.type);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }