/// <summary>
        /// control delete state
        /// </summary>
        /// <param name="codeI"></param>
        /// <returns></returns>
        private bool CheckAfterDelete(int codeI)
        {
            DeleteLayer dictDelegat = new DeleteLayer(_layer.Delete);
            bool        result      = dictDelegat(codeI);

            if (!result)
            {
                MessageShow.ShowError(DelMess);
            }
            return(result);
        }
        /// <summary>
        /// check result data after 'Update'
        /// </summary>
        /// <param name="updateItem"></param>
        /// <returns></returns>
        private TypePlace CheckAfterUpdate(TypePlace updateItem)
        {
            UpdateLayer dictDelegat = new UpdateLayer(_layer.Update);
            TypePlace   result      = dictDelegat(typePlaceData);

            if (result == null)
            {
                MessageShow.ShowError(UpdateMess);
                //select first element of grid by default
                result = TypePlaceList[0];
            }
            return(result);
        }
        /// <summary>
        /// check result data after 'Create'
        /// </summary>
        /// <param name="createItem"></param>
        /// <returns></returns>
        private TypePlace CheckAfterCreate(TypePlace createItem)
        {
            CreateLayer dictDelegat = new CreateLayer(_layer.Create);
            TypePlace   result      = dictDelegat(createItem);

            if (result == null)
            {
                MessageShow.ShowError(CreateMess);
                //select first element of grid by default
                result = TypePlaceList[0];
            }
            return(result);
        }
        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 result data after 'Craete'
        /// </summary>
        /// <param name="createItem"></param>
        /// <returns></returns>
        private SystemConstant CheckAfterCreate(SystemConstant createItem)
        {
            CreateLayer    dictDelegat = new CreateLayer(_layer.Create);
            SystemConstant result      = dictDelegat(createItem);

            if (result == null)
            {
                MessageShow.ShowError(CreateMess);
                //select first element of grid by default
                result = SystemConstantList[0];
            }
            return(result);
        }
        /// <summary>
        /// check result data after 'Update'
        /// </summary>
        /// <param name="updateItem"></param>
        /// <returns></returns>
        private KlR030 CheckAfterUpdate(KlR030 updateItem)
        {
            UpdateLayer dictDelegat = new UpdateLayer(_layer.Update);
            KlR030      result      = dictDelegat(klr030Data);

            if (result == null)
            {
                MessageShow.ShowError(UpdateMess);
                //select first element of grid by default
                result = Klr030List[0];
            }
            return(result);
        }
        /// <summary>
        /// check result data after 'Create'
        /// </summary>
        /// <param name="createItem"></param>
        /// <returns></returns>
        private KlR030 CheckAfterCreate(KlR030 createItem)
        {
            CreateLayer dictDelegat = new CreateLayer(_layer.Create);
            KlR030      result      = dictDelegat(createItem);

            if (result == null)
            {
                MessageShow.ShowError(CreateMess);
                //select first element of grid by default
                result = Klr030List[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);
        }