Пример #1
0
        public virtual BoolParameter Register(string sName, Func <bool> getValue, Action <bool> setValue, bool defaultValue, bool isAlias = false)
        {
            if (FindByName(sName) != null)
            {
                throw new Exception("ParameterSet.Register: parameter named " + sName + " already registered!");
            }
            var param = new BoolParameter()
            {
                name = sName, getValue = getValue, setValue = setValue, defaultValue = defaultValue, isAlias = isAlias
            };

            vParameters.Add(param);
            return(param);
        }
Пример #2
0
 void add_bool_param(BoolParameter p)
 {
     // ignore
 }