예제 #1
0
파일: Layout.cs 프로젝트: configare/hispeed
        public override void InitByXml(System.Xml.Linq.XElement xml)
        {
            if (xml.Attribute("unit") != null)
            {
                string s = xml.Attribute("unit").Value;
                switch (s.ToLower())
                {
                case "pixel":
                    _unit = enumLayoutUnit.Pixel;
                    break;

                case "centimeter":
                    _unit = enumLayoutUnit.Centimeter;
                    break;
                }
            }
            if (xml.Attribute("size") != null)
            {
                _size = (SizeF)LayoutFromFile.Base64StringToObject(xml.Attribute("size").Value);
            }
            base.InitByXml(xml);
        }
예제 #2
0
파일: Layout.cs 프로젝트: configare/hispeed
 public Layout(enumLayoutUnit unit)
     : base()
 {
     _unit = unit;
 }
예제 #3
0
파일: Layout.cs 프로젝트: configare/hispeed
 public Layout()
     : base()
 {
     _unit = enumLayoutUnit.Pixel;
 }