public override void LoadConfig(FXmlNode config) { _name = config[PTY_NAME]; RString.CheckEmpty(_name, "name"); _value = config[PTY_VALUE]; RString.CheckEmpty(_value, "value"); // Load formator if (config.Contains(PTY_FORMATOR)) { /*string formator = config[PTY_FORMATOR]; * _formator = (IFormator)RClass.CreateInstance(formator); * _formator.LoadConfig(config); * // Load formator value * FFormatorParameters parameters = new FFormatorParameters(); * parameters.RaiseException = true; * parameters.Value = Value; * if (_formator.Format(parameters)) { * _value = RString.Nvl(parameters.Value); * }*/ } // Dump if (_logger.DebugAble) { _logger.Debug(this, "LoadConfig", "Define {0}=[{1}]", _name, _value); } }
public override void LoadConfig(FXmlNode config) { _name = config[PTY_NAME]; RString.CheckEmpty(_name, "name"); _type = config[PTY_TYPE]; _value = config.Text; }
public void LoadConfig(FXmlNode config) { _name = config[PTY_NAME]; RString.CheckEmpty(_name, "name"); _class = config[PTY_CLASS]; RString.CheckEmpty(_class, "class"); RClass.Exists(_class); }
//============================================================ public override void LoadConfig(FXmlNode config) { _name = config[PTY_NAME]; RString.CheckEmpty(_name, PTY_NAME); _linkAssembly = Assembly.Load(_name); if (_logger.DebugAble) { _logger.Debug(this, "LoadConfig", "Include reference {0}", _linkAssembly); } }
//============================================================ // <T>加载设置信息。</T> // // @param config 设置信息 //============================================================ public void LoadConfig(FXmlNode config) { // 获得名称 _name = config[PTY_NAME]; RString.CheckEmpty(_name, "name"); // 获得类型 _typeName = config[PTY_TYPE]; RString.CheckEmpty(_typeName, "type"); // 获得类对象 _type = RClass.Find(_typeName); }
public override void LoadConfig(FXmlNode config) { _fileName = config.Text; RString.CheckEmpty(_fileName, "fileName"); _fileName = RSystem.Location(_fileName); if (!File.Exists(_fileName)) { throw new FFatalException("Include file is not exists. (file={0})", _fileName); } if (_logger.DebugAble) { _logger.Debug(this, "LoadConfig", "Include file {0}", _fileName); } // Load include _console.LoadDocument(_fileName); }
public override void LoadConfig(FXmlNode config) { // Name _name = config[PTY_NAME]; RString.CheckEmpty(_name, "name"); // Type _typeName = config[PTY_TYPE]; RString.CheckEmpty(_typeName, "typeName"); _linkType = _console.FindType(_typeName); // Collection if (config.Contains(PTY_COLLECTION)) { _collectionName = config[PTY_COLLECTION]; RString.CheckEmpty(_collectionName, "collectionName"); _linkCollection = _console.FindType(_collectionName); } else { _linkCollection = RClass.Find(typeof(XAopNodeCollection <IAopNode>)); _collectionName = _linkCollection.Type.FullName; } }