PageRenderTime 42ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/CBR/CBR.Core/Models/Zone.cs

#
C# | 54 lines | 42 code | 11 blank | 1 comment | 0 complexity | 34496a0159811f41e716a2a56efc468c MD5 | raw file
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows;
  6. using System.Xml.Serialization;
  7. namespace CBR.Core.Models
  8. {
  9. public enum FrameType
  10. {
  11. Zone, Page
  12. }
  13. [Serializable, XmlRoot(ElementName = "config")]
  14. public class Zone
  15. {
  16. public Zone()
  17. {
  18. Type = FrameType.Zone;
  19. }
  20. public Zone(string filePath)
  21. {
  22. Type = FrameType.Zone;
  23. FilePath = filePath;
  24. }
  25. [XmlAttribute]
  26. public string FilePath { get; set; }
  27. [XmlAttribute]
  28. public FrameType Type { get; set; }
  29. //top/left corner
  30. [XmlAttribute]
  31. public double X { get; set; }
  32. [XmlAttribute]
  33. public double Y { get; set; }
  34. [XmlAttribute]
  35. public double Width { get; set; }
  36. [XmlAttribute]
  37. public double Height { get; set; }
  38. [XmlAttribute]
  39. public int OrderNum { get; set; }
  40. [XmlAttribute]
  41. public int Duration { get; set; }
  42. }
  43. }