예제 #1
0
파일: editor.cs 프로젝트: longsamaa/THESIS
 private void handling(string source)
 {
     mainForm.getSourceToDictForm(source);
     setHTMLSource(source);
     mainForm.resetTextMachineTranslationForm();
     mainForm.translationMachine(source);
     mainForm.predictSemantic(source);
     mainForm.hideRTBFuzzymatched();
     //mainForm.replacePreviewForm(getListSegment());
     colorSegment();
 }
예제 #2
0
        private void editorGrid_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            int Index = e.RowIndex;

            if (Index >= 0)
            {
                string source = editorGrid.Rows[Index].Cells["sourceColumn"].Value.ToString();
                mainForm.resetTextMachineTranslationForm();
                mainForm.translationMachine(source);
            }
        }