示例#1
0
 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);
            }
        }