예제 #1
0
 /// <summary>
 /// Populate the terms
 /// </summary>
 protected override void PopulateTerm()
 {
     this.Term.Clear();
     foreach (var thing in this.Thing.Term.Where(t => t.ChangeKind != ChangeKind.Delete))
     {
         var row = new TermRowViewModel(thing, this.Session, this);
         row.DefinitionValue = thing.Definition.Any() ? thing.Definition.First().Content : string.Empty;
         this.Term.Add(row);
     }
 }
        /// <summary>
        /// The add term row view model.
        /// </summary>
        /// <param name="term">
        /// The term.
        /// </param>
        private void AddTermRowViewModel(Term term)
        {
            var row = new TermRowViewModel(term, this.Session, this);

            this.ContainedRows.Add(row);
        }