private void menuItemFind_Click(object sender, EventArgs e)
        {
            if (tabMain.SelectedTab == tabPageInvoke)
            {
                if (treeMethods.SelectedNode == null && treeInput.SelectedNode == null && treeOutput.SelectedNode == null)
                {
                    MessageBox.Show(this, "Please select a TreeView first and click Ctrl+F or using context menu!", "Help",
                        MessageBoxButtons.OK,
                        MessageBoxIcon.Information);
                    return;
                }

                return;
            }

            SearchDialog dialog1 = new SearchDialog();
            dialog1.ShowDialog();
            if (dialog1.DialogResult == DialogResult.OK)
            {
                tabMain.SelectedTab = tabPageWsdl;
                findOption = RichTextBoxFinds.None;
                if (dialog1.MatchCase)
                {
                    findOption |= RichTextBoxFinds.MatchCase;
                }
                if (dialog1.WholeWord)
                {
                    findOption |= RichTextBoxFinds.WholeWord;
                }
                searchStr = dialog1.SearchStr;
                Find();
            }
        }
Beispiel #2
0
 private void menuItemFind_Click(object sender, EventArgs e)
 {
     SearchDialog dialog = new SearchDialog();
     dialog.ShowDialog();
     if (dialog.DialogResult == DialogResult.OK)
     {
         this.tabMain.SelectedTab = this.tabPageWsdl;
         this.findOption = RichTextBoxFinds.None;
         if (dialog.MatchCase)
         {
             this.findOption |= RichTextBoxFinds.MatchCase;
         }
         if (dialog.WholeWord)
         {
             this.findOption |= RichTextBoxFinds.WholeWord;
         }
         this.searchStr = dialog.SearchStr;
         this.Find();
     }
 }