TreeInfoViewModel.cs 707 B

123456789101112131415161718192021222324252627282930313233
  1. using System.ComponentModel.Composition;
  2. namespace Tree
  3. {
  4. [Export(contractType: typeof(TreeInfoViewModel)), PartCreationPolicy(creationPolicy: CreationPolicy.NonShared)]
  5. internal class TreeInfoViewModel
  6. {
  7. private int id;
  8. private string comment;
  9. public TreeInfoViewModel(int id, string comment)
  10. {
  11. this.id = id;
  12. this.comment = comment;
  13. }
  14. public int Id
  15. {
  16. get
  17. {
  18. return this.id;
  19. }
  20. }
  21. public string Comment
  22. {
  23. get
  24. {
  25. return this.comment;
  26. }
  27. }
  28. }
  29. }