private void handling(string source) { mainForm.getSourceToDictForm(source); setHTMLSource(source); mainForm.resetTextMachineTranslationForm(); mainForm.translationMachine(source); mainForm.predictSemantic(source); mainForm.hideRTBFuzzymatched(); //mainForm.replacePreviewForm(getListSegment()); colorSegment(); }
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); } }