Ejemplo n.º 1
0
        public static void AddXParamToModuleAttribute(this XModuleAttribute moduleAttribute,
                                                      string name,
                                                      string value,
                                                      ParamTypeE xParamType)
        {
            XParam newXParam = moduleAttribute.CreateConfigurationParam();

            newXParam.Name      = name;
            newXParam.Value     = value;
            newXParam.ParamType = xParamType;
        }
Ejemplo n.º 2
0
        public static void AddXParamToModuleAttribute(this ApiModule module,
                                                      string name,
                                                      string value,
                                                      ParamTypeE xParamType)
        {
            var xparam = module.XParams.Where(x => x.Name == name);

            if (xparam == null || !xparam.Any())
            {
                XParam newXParam = module.CreateConfigurationParam();
                newXParam.Name      = name;
                newXParam.Value     = value;
                newXParam.ParamType = xParamType;
                if (name == "Password")
                {
                    newXParam.Visible = false;
                }
            }
        }