Beispiel #1
0
        public override void Execute(TextBoxControl editor)
        {
            if (_dlgFind == null)
            {
                _dlgFind = new FindForm(editor);
            }

            if (!_dlgFind.Visible)
            {
                _dlgFind.Show();
            }

            //TextLocation homeLocation = editor.GetLineHomeInfo(editor.Caret.Line);
            //if (homeLocation != TextLocation.Empty)
            //{
            //    editor.Caret.Position = homeLocation;
            //    editor.Caret.UpdateCaretPosition();
            //    if (editor.HorizontalScroll.Value != 0 && editor.HorizontalScroll.Visible)
            //    {
            //        editor.HorizontalScroll.Value = 0;
            //        editor.PerformLayout();
            //    }
            //}
        }
Beispiel #2
0
        public void ShowFindDialog()
        {
            FindForm _f = new FindForm(rtf);

            _f.Show();
        }
Beispiel #3
0
 private void findToolStripMenuItem_Click(object sender, EventArgs e)
 {
     findform = new ResxEditor.FindForm();
     findform.OnFindPressed += f_OnFindPressed;
     findform.Show(this);
 }