private void ImportTagsTranslate(TagsRepository tagsRepository) { DataTable tableTagsTranslate = this.GetTableTagsValuesTrans(); TagCompleteRowEnumerator enumerator = tagsRepository.GetEnumerator(); while (enumerator.MoveNext()) { TagCompleteRow tagCompleteRow = enumerator.Current; DataRow row = tableTagsTranslate.NewRow(); row["tagHash"] = tagCompleteRow.KeyId; if (tagCompleteRow.TypeValue == TypeValueTag.Id) { row["typeTrans"] = TagValueTransType.TagAndValue; row["valueHash"] = tagCompleteRow.ValueId; row["valTrans"] = tagCompleteRow.ValueName; } else { row["valueHash"] = Int32.MaxValue; row["typeTrans"] = TagValueTransType.OnlyTag; } row["tagTrans"] = tagCompleteRow.KeyName; row["LCID"] = -1; tableTagsTranslate.Rows.Add(row); } //if (_tagsValuesTrans.Rows.Count == COUNT_ROW) //{ this.ImportDataTableInDb(ref tableTagsTranslate, new GetTable(GetTableTagsValuesTrans)); //} }