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

            this.imageCursor = BooruApp.BooruApplication.Database.QueryRandomImagesForVoting(this.type);
        }
コード例 #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);
        }
コード例 #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);
        }