示例#1
0
        private void menuFindReplace_Click(object sender, EventArgs e)
        {
            // if the Find & Replace dialog isn't open, let's create and show it
            if (_findReplace != null && _findReplace.Created)
            {
                _findReplace.Focus();
                return;
            }

            var currentTxtEditor = GetCurrentNocTextEditor();

            if (currentTxtEditor != null)
            {
                _findReplace = new FindReplaceDialog(currentTxtEditor);
                _findReplace.Show();
            }
        }
示例#2
0
文件: Main.cs 项目: mikkoj/nocs
        private void menuFindReplace_Click(object sender, EventArgs e)
        {
            // if the Find & Replace dialog isn't open, let's create and show it
            if (_findReplace != null && _findReplace.Created)
            {
                _findReplace.Focus();
                return;
            }

            var currentTxtEditor = GetCurrentNocTextEditor();
            if (currentTxtEditor != null)
            {
                _findReplace = new FindReplaceDialog(currentTxtEditor);
                _findReplace.Show();
            }
        }