예제 #1
0
        protected void AddBookmark(
            SearchBookmarkQueue sbq,
            String propertyName,
            Int32 propertyIndex,
            Int32 start,
            Int32 length)
        {
            SearchBookmark sb = new SearchBookmark();

            sb.Element      = this;
            sb.PropertyName = propertyName;
            sb.Index        = propertyIndex;
            sb.Start        = start;
            sb.Length       = length;
            sbq.Enqueue(sb);
        }
예제 #2
0
 private void NextBookmark()
 {
     if (this.bookmarks.Count > 0)
     {
         bookmark = bookmarks.Dequeue();
         ctrl     = parent.ShowTarget(
             bookmark.Element,
             bookmark.PropertyName,
             bookmark.Index,
             bookmark.Start,
             bookmark.Length);
     }
     else
     {
         MessageBox.Show(
             this.localizer.GetValue("UserMessages", "searchCompleted"),
             Application.ProductName,
             MessageBoxButtons.OK,
             MessageBoxIcon.Information);
         bookmark = null;
         this.SetState();
     }
 }
예제 #3
0
 private void cbElementOnly_CheckedChanged(object sender, EventArgs e)
 {
     bookmark = null;
     this.SetState();
 }
예제 #4
0
 private void cbCaseSensitivity_CheckedChanged(object sender, EventArgs e)
 {
     bookmark = null;
     this.SetState();
 }
예제 #5
0
 private void cbWholeWords_CheckedChanged(object sender, EventArgs e)
 {
     bookmark = null;
     this.SetState();
 }
예제 #6
0
 private void tbSearch_TextChanged(object sender, EventArgs e)
 {
     bookmark = null;
     this.SetState();
 }