Scene.cs 504 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. namespace ETModel
  2. {
  3. public sealed class Scene: Entity
  4. {
  5. public SceneType SceneType { get; set; }
  6. public string Name { get; set; }
  7. public Scene Get(long id)
  8. {
  9. return (Scene)this.Children[id];
  10. }
  11. public new Entity Domain
  12. {
  13. get
  14. {
  15. return this.domain;
  16. }
  17. set
  18. {
  19. this.domain = value;
  20. }
  21. }
  22. public new Entity Parent
  23. {
  24. get
  25. {
  26. return this.parent;
  27. }
  28. set
  29. {
  30. this.parent = value;
  31. this.parent.Children.Add(this.Id, this);
  32. }
  33. }
  34. }
  35. }