TreeInfoViewModel.cs 546 B

12345678910111213141516171819202122232425262728293031
  1. 
  2. namespace Tree
  3. {
  4. public class TreeInfoViewModel
  5. {
  6. private int id;
  7. private string comment;
  8. public TreeInfoViewModel(int id, string comment)
  9. {
  10. this.id = id;
  11. this.comment = comment;
  12. }
  13. public int Id
  14. {
  15. get
  16. {
  17. return this.id;
  18. }
  19. }
  20. public string Comment
  21. {
  22. get
  23. {
  24. return this.comment;
  25. }
  26. }
  27. }
  28. }