예제 #1
0
 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);
     }
 }
예제 #2
0
 public override void LoadConfig(FXmlNode config)
 {
     _name = config[PTY_NAME];
     RString.CheckEmpty(_name, "name");
     _type  = config[PTY_TYPE];
     _value = config.Text;
 }
예제 #3
0
 public void LoadConfig(FXmlNode config)
 {
     _name = config[PTY_NAME];
     RString.CheckEmpty(_name, "name");
     _class = config[PTY_CLASS];
     RString.CheckEmpty(_class, "class");
     RClass.Exists(_class);
 }
예제 #4
0
 //============================================================
 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);
     }
 }
예제 #5
0
 //============================================================
 // <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);
 }
예제 #6
0
 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);
 }
예제 #7
0
 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;
     }
 }