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