示例#1
0
        /// <summary>
        /// 获取界面帮助控件的Element
        /// </summary>
        private ComboBoxElement GetComBox(string elementId)
        {
            var ele = CompContext.GetElementByID <ComboBoxElement>(XFMLConstants.ELEMENT_COMBOBOX, elementId);

            if (ele == null)
            {
                throw new InvalidFormDefException($"无法找到ID为{elementId}的值映射的ComboBoxElement控件");
            }
            return(ele);
        }
示例#2
0
        /// <summary>
        /// 获取界面帮助控件的Element
        /// </summary>
        private DataDictLookUpElement GetDataDictLookUp(string elementId)
        {
            var ele = CompContext.GetElementByID <DataDictLookUpElement>(XFMLConstants.ELEMENT_DATA_DICT_LOOKUP, elementId);

            if (ele == null)
            {
                throw new InvalidFormDefException($"无法找到ID为{elementId}的值映射的DataDictLookUpElement控件");
            }
            return(ele);
        }