コード例 #1
0
        // Translate ScreenTabHlp table:
        private int WrTrlScreenTabHlp(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.WrGetScreenTabHlp(CultureId, dbConnectionString, dbPassword);
            }
            foreach (DataRow dr in dt.Rows)
            {
                dr["TabFolderName"] = WrGetTranslation(DefCulture, CultureId, CultureName, dr["TabFolderName"].ToString().Trim(), dbConnectionString, dbPassword);
                using (Access3.WebAccess dac = new Access3.WebAccess())
                {
                    dac.WrInsScreenTabHlp(dr, CultureId, dbConnectionString, dbPassword);
                }
                cnt = cnt + 1; if (cnt >= MaxCnt)
                {
                    break;
                }
            }
            return(cnt);
        }