Beispiel #1
0
 /// <summary>
 /// Show the list of translations for the selected TM Expression
 /// </summary>
 private void ShowTMTranslations()
 {
     using (HCExpression = TMExpression.GetByKey(Convert.ToInt32(expressionId)))
     {
         int TranslationsCount = HCExpression.Translations.Count - HCExpression.TranslationsMissingCount;
         UITools.RefreshTab(Page, "Translations", "'" + TranslationsCount.ToString() + "/" + HCExpression.Translations.Count.ToString() + "'");
         using (TMExpressionTranslationList list = TMExpressionTranslation.GetAll(expressionId, string.Empty))
         {
             dg.DataSource = list;
             Utils.InitGridSort(ref dg, false);
             dg.DisplayLayout.CellClickActionDefault           = CellClickAction.NotSet;
             dg.DisplayLayout.ActivationObject.AllowActivation = false;
             dg.DataBind();
         }
     }
 }