コード例 #1
0
        /// <include file='IniConfigSource.xml' path='//Method[@name="LoadIniDocument"]/docs/*' />
        public void Load(IniDocument document)
        {
            this.Configs.Clear ();

            this.Merge (this); // required for SaveAll
            iniDocument = document;
            Load ();
        }
コード例 #2
0
 /// <include file='IniConfigSource.xml' path='//Constructor[@name="Constructor"]/docs/*' />
 public IniConfigSource()
 {
     iniDocument = new IniDocument ();
 }
コード例 #3
0
 /// <include file='IniConfigSource.xml' path='//Constructor[@name="ConstructorIniDocument"]/docs/*' />
 public IniConfigSource(IniDocument document)
 {
     Load (document);
 }
コード例 #4
0
        /// <include file='IConfigSource.xml' path='//Method[@name="Reload"]/docs/*' />
        public override void Reload()
        {
            if (savePath == null) {
                throw new ArgumentException ("Error reloading: You must have "
                            + "the loaded the source from a file");
            }

            iniDocument = new IniDocument (savePath);
            MergeDocumentIntoConfigs ();
            base.Reload ();
        }