/CBR/CBR.Core/Models/Zone.cs
C# | 54 lines | 42 code | 11 blank | 1 comment | 0 complexity | 34496a0159811f41e716a2a56efc468c MD5 | raw file
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Windows;
- using System.Xml.Serialization;
-
- namespace CBR.Core.Models
- {
- public enum FrameType
- {
- Zone, Page
- }
-
- [Serializable, XmlRoot(ElementName = "config")]
- public class Zone
- {
- public Zone()
- {
- Type = FrameType.Zone;
- }
-
- public Zone(string filePath)
- {
- Type = FrameType.Zone;
- FilePath = filePath;
- }
-
- [XmlAttribute]
- public string FilePath { get; set; }
-
- [XmlAttribute]
- public FrameType Type { get; set; }
-
- //top/left corner
- [XmlAttribute]
- public double X { get; set; }
-
- [XmlAttribute]
- public double Y { get; set; }
-
- [XmlAttribute]
- public double Width { get; set; }
-
- [XmlAttribute]
- public double Height { get; set; }
-
- [XmlAttribute]
- public int OrderNum { get; set; }
-
- [XmlAttribute]
- public int Duration { get; set; }
- }
- }