// Translate MenuHlp table: private int WrTrlMenuHlp(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.WrGetMenuHlp(CultureId, dbConnectionString, dbPassword); } foreach (DataRow dr in dt.Rows) { dr["MenuText"] = WrGetTranslation(DefCulture, CultureId, CultureName, dr["MenuText"].ToString().Trim(), dbConnectionString, dbPassword); using (Access3.WebAccess dac = new Access3.WebAccess()) { dac.WrInsMenuHlp(dr, CultureId, dbConnectionString, dbPassword); } cnt = cnt + 1; if (cnt >= MaxCnt) { break; } } return(cnt); }