// ******************************************************************************** /// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /// <returns></returns> /// <created>UPh,17.11.2015</created> /// <changed>UPh,17.11.2015</changed> // ******************************************************************************** void LookupForm_FormClosed(object sender, FormClosedEventArgs e) { _LookupForm = null; }
// ******************************************************************************** /// <summary> /// /// </summary> /// <param name="str"></param> /// <param name="lang1"></param> /// <param name="lang2"></param> /// <returns></returns> /// <created>UPh,16.11.2015</created> /// <changed>UPh,16.11.2015</changed> // ******************************************************************************** public override uint LookupTerminology(string str, int lcid1, int lcid2) { if (!PrepareRequest(lcid1, lcid2)) return 1; List<TermInfoResultArgs> result = _Query.RequestSyncTermInfos(str); if (result == null || result.Count == 0) return 1; if (_LookupForm == null) { _LookupForm = new LookupForm(); _LookupForm.FormClosed += LookupForm_FormClosed; } _LookupForm.Show(); _LookupForm.SetData(str, _TermBaseSet, result); return 0; }