/// <summary>
 /// Initializes a new instance of the <see cref="EditReferenceTermNameModel"/> class.
 /// </summary>
 public EditReferenceTermNameModel(ReferenceTermName termName) : this()
 {
     Id       = termName.Key;
     Name     = termName.Name;
     Language = termName.Language;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EditReferenceTermNameModel"/> class.
 /// </summary>
 public EditReferenceTermNameModel(ReferenceTerm referenceTerm, ReferenceTermName termName) : this(termName)
 {
     ReferenceTermId       = referenceTerm.Key;
     Mnemonic              = referenceTerm.Mnemonic;
     ReferenceTermNameList = referenceTerm.DisplayNames.Select(n => new ReferenceTermNameViewModel(n)).ToList();
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReferenceTermNameViewModel"/> class.
 /// </summary>
 public ReferenceTermNameViewModel(ReferenceTermName referenceTermName)
 {
     Id       = referenceTermName.Key ?? Guid.Empty;
     Language = referenceTermName.Language;
     Name     = referenceTermName.Name;
 }