private TypePlace CheckAfterGetQuery(int codeI)
        {
            GetDictionaryLayer dictDelegat = new GetDictionaryLayer(_layer.GetDictionary);
            TypePlace          result      = dictDelegat(codeI);

            if (result == null)
            {
                MessageShow.ShowError(GetMess);
                //set select first element of grid
                result = TypePlaceList[0];
            }
            return(result);
        }
        /// <summary>
        /// //check after 'Get' query
        /// </summary>
        /// <param name="codeI"></param>
        /// <returns></returns>
        private KlR030 CheckAfterGetQuery(string code)
        {
            GetDictionaryLayer dictDelegat = new GetDictionaryLayer(_layer.GetDictionary);
            KlR030             result      = new KlR030();

            if (int.TryParse(code, out int codeInt))
            {
                result = dictDelegat(codeInt);
            }
            else
            {
                result = null;
            }
            if (result == null)
            {
                MessageShow.ShowError(GetMess);
                //set select first element of grid
                result = Klr030List[0];
            }
            return(result);
        }