예제 #1
0
        public static bool SaveConfigTo(BaseConfigInfo bci, string configFilePath)
        {
            BaseConfigFileManager bcfm = new BaseConfigFileManager();

            return(bcfm.SaveConfig(configFilePath, bci));
        }
예제 #2
0
 /// <summary>
 /// Gets a value indicating whether the collection contains the specified <see cref="BaseConfigInfoCollection">BaseConfigInfoCollection</see>.
 /// </summary>
 /// <param name="value">The <see cref="BaseConfigInfoCollection">BaseConfigInfoCollection</see> to search for in the collection.</param>
 /// <returns><b>true</b> if the collection contains the specified object; otherwise, <b>false</b>.</returns>
 public bool Contains(BaseConfigInfo value)
 {
     return(this.List.Contains(value));
 }
예제 #3
0
 public static void ResetConfig()
 {
     m_configinfo = BaseConfigFileManager.LoadRealConfig();
 }
예제 #4
0
 public int Add(BaseConfigInfo value)
 {
     return(this.List.Add(value));
 }
예제 #5
0
 public void Remove(BaseConfigInfo value)
 {
     List.Remove(value);
 }
예제 #6
0
 public void Insert(int index, BaseConfigInfo value)
 {
     List.Insert(index, value);
 }
예제 #7
0
 /// <summary>
 /// Gets the index in the collection of the specified <see cref="BaseConfigInfoCollection">BaseConfigInfoCollection</see>, if it exists in the collection.
 /// </summary>
 /// <param name="value">The <see cref="BaseConfigInfoCollection">BaseConfigInfoCollection</see> to locate in the collection.</param>
 /// <returns>The index in the collection of the specified object, if found; otherwise, -1.</returns>
 public int IndexOf(BaseConfigInfo value)
 {
     return(this.List.IndexOf(value));
 }
예제 #8
0
        public static bool SaveConfigTo(BaseConfigInfo baseconfiginfo, string fileName)
        {
            BaseConfigFileManager acfm = new BaseConfigFileManager();

            return(acfm.SaveConfig(fileName, baseconfiginfo));
        }