Exemplo n.º 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 ();
        }
Exemplo n.º 2
0
 /// <include file='IniConfigSource.xml' path='//Constructor[@name="Constructor"]/docs/*' />
 public IniConfigSource()
 {
     iniDocument = new IniDocument ();
 }
Exemplo n.º 3
0
 /// <include file='IniConfigSource.xml' path='//Constructor[@name="ConstructorIniDocument"]/docs/*' />
 public IniConfigSource(IniDocument document)
 {
     Load (document);
 }
Exemplo n.º 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 ();
        }