static AppTableUnite() { INIFileHelper helper = INIFileHelper.CfgINIHelper; string tmp = helper.INIReadFile("Branch", "dbcount"); int count = Convert.ToInt32(tmp); mDBNames = new string[count]; for (int i = 0; i < count; ++i) { string key = string.Format("dbname{0}", i); tmp = helper.INIReadFile("Branch", key); mDBNames[i] = tmp; } ReloadRemoteTable(); }
private static void InitDBSourceString() { mSourceStringMap = new Dictionary <string, string>(); INIFileHelper inifile = INIFileHelper.CfgINIHelper; string tmp = inifile.INIReadFile("Database", "dbcount"); int count = Convert.ToInt32(tmp); for (int i = 0; i < count; ++i) { string key = string.Format("dbname{0}", i); tmp = inifile.INIReadFile("Database", key); string source = string.Format("Server = jx3web; DataBase = {0}; Uid = s3design; Password = davidbowie;", tmp); mSourceStringMap[tmp] = source; } mSourceStringMap["monitor"] = mSourceStringMap["s3design_test"]; }
public string INIReadFile(string section, string key) { return(INIFileHelper.INIReadFile(section, key, mFileName)); }
public long INIWriteFile(string section, string key, string val) { return(INIFileHelper.INIWriteFile(section, key, val, mFileName)); }