Beispiel #1
0
 /// <summary>
 /// Constructor with TextRangeViewModel
 /// </summary>
 /// <param name="name"></param>
 /// <param name="text"></param>
 /// <param name="tr"></param>
 public TextAttributeViewModel(int id, string name, TextRangeViewModel tr)
 {
     this.Id                = id;
     this.Name              = name;
     this.Text              = tr.Text;
     this.TextRange         = tr;
     this.DetailsVisibility = Visibility.Visible;
 }
 /// <summary>
 /// Constructor with TextRangeViewModel
 /// </summary>
 /// <param name="name"></param>
 /// <param name="text"></param>
 /// <param name="tr"></param>
 public TextAttributeViewModel(int id, string name, TextRangeViewModel tr)
 {
     this.Id                = id;
     this.Name              = name;
     this.TextRange         = tr ?? throw new ArgumentNullException(nameof(tr));
     this.Text              = tr.Text;
     this.DetailsVisibility = Visibility.Visible;
 }