ARCed.Scintilla.GoTo.ShowGoToDialog C# (CSharp) Method

ShowGoToDialog() public method

public ShowGoToDialog ( ) : void
return void
        public void ShowGoToDialog()
        {
            var gd = new GoToDialog
            {
                CurrentLineNumber = Scintilla.Lines.Current.Number,
                MaximumLineNumber = Scintilla.Lines.Count,
                Scintilla = Scintilla
            };

            if (gd.ShowDialog() == DialogResult.OK)
                this.Line(gd.GotoLineNumber);

            Scintilla.Focus();
        }