예제 #1
0
        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();
        }
예제 #2
0
 private void btn_Cancel_Click(object sender, EventArgs e)
 {
     UseEditForm.CloseForm();
 }