PageRenderTime 22ms CodeModel.GetById 17ms app.highlight 3ms 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
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Text;
 5using System.Windows;
 6using System.Xml.Serialization;
 7
 8namespace CBR.Core.Models
 9{
10	public enum FrameType
11	{
12		Zone, Page
13	}
14
15    [Serializable, XmlRoot(ElementName = "config")]
16	public class Zone
17	{
18		public Zone()
19		{
20            Type = FrameType.Zone;
21		}
22
23		public Zone(string filePath)
24		{
25            Type = FrameType.Zone;
26            FilePath = filePath;
27		}
28
29        [XmlAttribute]
30		public string FilePath { get; set; }
31
32        [XmlAttribute]
33        public FrameType Type { get; set; }
34
35        //top/left corner
36        [XmlAttribute]
37        public double X { get; set; }
38        
39        [XmlAttribute]
40        public double Y { get; set; }
41
42        [XmlAttribute]
43        public double Width { get; set; }
44
45        [XmlAttribute]
46        public double Height { get; set; }
47
48        [XmlAttribute]
49        public int OrderNum { get; set; }
50
51        [XmlAttribute]
52        public int Duration { get; set; }
53	}
54}