예제 #1
0
 private void miSentenceGoTo_Click(object sender, System.EventArgs e)
 {
     dlgGoTo dlg = new dlgGoTo();
     dlg.Text = "Go To Sentence";
     dlg.GoToPrompt = "&Go to sentence:";
     dlg.ShowDialog();
     if (dlg.DialogResult == DialogResult.OK)
     {
         int iNum = dlg.Number;
         PcPatrSentence sent = m_doc.GoToSentence(iNum);
         ShowParseTree(sent, sent.CurrentParse);
         ShowInterlinear(sent);
     }
 }
예제 #2
0
 private void miParserGoTo_Click(object sender, System.EventArgs e)
 {
     dlgGoTo dlg = new dlgGoTo();
     dlg.Text = "Go To Parse";
     dlg.GoToPrompt = "&Go to parse:";
     dlg.ShowDialog();
     if (dlg.DialogResult == DialogResult.OK)
     {
         int iNum = dlg.Number;
         PcPatrSentence sent = m_doc.CurrentSentence;
         ShowParseTree(sent, sent.GoToParse(iNum));
     }
 }