// Translate ScreenObjHlp table: private int WrTrlScreenObjHlp(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.WrGetScreenObjHlp(CultureId, dbConnectionString, dbPassword); } foreach (DataRow dr in dt.Rows) { if (",28,36,37,".IndexOf("," + dr["DisplayModeId"].ToString() + ",") < 0) // Not Image, Placeholder or Html Editor; { dr["ColumnHeader"] = WrGetTranslation(DefCulture, CultureId, CultureName, dr["ColumnHeader"].ToString().Trim(), dbConnectionString, dbPassword); } dr["TbHint"] = WrGetTranslation(DefCulture, CultureId, CultureName, dr["TbHint"].ToString().Trim(), dbConnectionString, dbPassword); dr["ToolTip"] = WrGetTranslation(DefCulture, CultureId, CultureName, dr["ToolTip"].ToString().Trim(), dbConnectionString, dbPassword); dr["ErrMessage"] = WrGetTranslation(DefCulture, CultureId, CultureName, dr["ErrMessage"].ToString().Trim(), dbConnectionString, dbPassword); using (Access3.WebAccess dac = new Access3.WebAccess()) { dac.WrInsScreenObjHlp(dr, CultureId, dbConnectionString, dbPassword); } cnt = cnt + 1; if (cnt >= MaxCnt) { break; } } return(cnt); }