Esempio n. 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);
 }
 private void tbSearch_TextChanged(object sender, EventArgs e)
 {
     bookmark = null;
     this.SetState();
 }
 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();
     }
 }
 private void cbWholeWords_CheckedChanged(object sender, EventArgs e)
 {
     bookmark = null;
     this.SetState();
 }
 private void cbElementOnly_CheckedChanged(object sender, EventArgs e)
 {
     bookmark = null;
     this.SetState();
 }
 private void cbCaseSensitivity_CheckedChanged(object sender, EventArgs e)
 {
     bookmark = null;
     this.SetState();
 }