Example #1
0
        private void findAndReplace()
        {
            findToolStripMenuItem.Enabled   = false;
            toolStripButtonFindTool.Enabled = false;
            FindTool creator = new FindTool();

            creator.Owner      = this;
            creator.KeyChange += TextOnChangeFind;
            creator.Show();
            creator.Closed += FindOnClosed;
        }
Example #2
0
        void TextOnChangeFind(object sender, EventArgs args)
        {
            FindTool creator = (FindTool)sender;
            string   pattern = creator.GetPattern;

            if (creator.isReplaceMethod)
            {
                ReplaceAll(richTextBoxLibraryContent, pattern, creator.GetReplaceWord);
            }
            else
            {
                FindPattern(pattern);
            }
        }
Example #3
0
 private void findAndReplace()
 {
     findToolStripMenuItem.Enabled = false;
     toolStripButtonFindTool.Enabled = false;
     FindTool creator = new FindTool();
     creator.Owner = this;
     creator.KeyChange += TextOnChangeFind;
     creator.Show();
     creator.Closed += FindOnClosed;
 }