// Translate MsgCenter table: private int WrTrlMsgCenter(int MaxCnt, string DefCulture, string CultureId, string CultureName, string dbConnectionString, string dbPassword) { int cnt = 0; DataTable dt; using (Access3.WebAccess dac = new Access3.WebAccess()) { dt = dac.WrGetMsgCenter(CultureId, dbConnectionString, dbPassword); } foreach (DataRow dr in dt.Rows) { dr["Msg"] = WrGetTranslation(DefCulture, CultureId, CultureName, dr["Msg"].ToString().Trim(), dbConnectionString, dbPassword); using (Access3.WebAccess dac = new Access3.WebAccess()) { dac.WrInsMsgCenter(dr, CultureId, dbConnectionString, dbPassword); } cnt = cnt + 1; if (cnt >= MaxCnt) { break; } } return(cnt); }