private void goToLineToolStripMenuItem_Click(object sender, EventArgs e) { FormGoToLine formGoToLine = new FormGoToLine(); formGoToLine.SetMaxLineNumber(_internalFileViewer.TotalNumberOfLines); if (formGoToLine.ShowDialog(this) == DialogResult.OK) { _internalFileViewer.GoToLine(formGoToLine.GetLineNumber() - 1); } }
private void goToLineToolStripMenuItem_Click(object sender, EventArgs e) { if (!_internalFileViewer.IsGotoLineUIApplicable()) { return; } using (FormGoToLine formGoToLine = new FormGoToLine()) { formGoToLine.SetMaxLineNumber(_internalFileViewer.TotalNumberOfLines); if (formGoToLine.ShowDialog(this) == DialogResult.OK) { GoToLine(formGoToLine.GetLineNumber() - 1); } } }
private void goToLineToolStripMenuItem_Click(object sender, EventArgs e) { using (FormGoToLine formGoToLine = new FormGoToLine()) { formGoToLine.SetMaxLineNumber(_internalFileViewer.TotalNumberOfLines); if (formGoToLine.ShowDialog(this) == DialogResult.OK) GoToLine(formGoToLine.GetLineNumber() - 1); } }