Пример #1
0
        // ********************************************************************************
        /// <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);
        }