private void btn_GoTo_Click(object sender, EventArgs e) { if (txt_LineNumber.Text == "") { return; } int line = Convert.ToInt32(txt_LineNumber.Text); if (line > _lineNumber || line == 0) { MessageBox.Show("Line number is out of range", "Notepad - GoTo", MessageBoxButtons.OK); return; } _GoToLineHandler(line - 1); UseEditForm.CloseForm(); }
private void btn_Cancel_Click(object sender, EventArgs e) { UseEditForm.CloseForm(); }