/// <summary> /// Paste the text to the editor. /// </summary> public override void Execute() { if (CurrentDocument != null) { EnterValueWindow dlg = new EnterValueWindow(); dlg.Title = "Go to line"; dlg.InputLabel = "Line number:"; dlg.ActionLabel = "Go"; dlg.InputRestriction = "[0-9]"; if (App.ShowDialog(dlg) && !String.IsNullOrWhiteSpace(dlg.EnteredValue)) { CurrentDocument.GotToLine(int.Parse(dlg.EnteredValue)); } } }