public void ShowGoToDialog() { //GoToDialog gd = new GoToDialog(); GoToDialog gd = _window; gd.CurrentLineNumber = _scintilla.CurrentLine; gd.MaximumLineNumber = _scintilla.Lines.Count; gd.Scintilla = _scintilla; if (!_window.Visible) { _window.Show(_scintilla.FindForm()); } //_window.ShowDialog(_scintilla.FindForm()); //_window.Show(_scintilla.FindForm()); //if (gd.ShowDialog() == DialogResult.OK) //Line(gd.GotoLineNumber); //gd.ShowDialog(); //gd.Show(); _scintilla.Focus(); }
public GoTo(Scintilla scintilla) { _scintilla = scintilla; _window = CreateWindowInstance(); _window.Scintilla = scintilla; }