Esempio n. 1
0
        /// <summary>
        /// Ctor
        /// </summary>
        protected Configurable()
        {
            //init eventual configuration
            var attr = this.GetType().GetCustomAttributes(typeof(attr.Config), false).FirstOrDefault() as attr.Config;

            _configName = attr != null ? attr.name : this.GetType().Name;
            _cfg        = ConfigData.Open().getConfig(_configName);
        }
Esempio n. 2
0
 /// <summary>
 /// ctro from name
 /// </summary>
 /// <param name="name"></param>
 protected Configurable(string name)
 {
     _configName = name;
     _cfg        = ConfigData.Open().getConfig(_configName);
 }