예제 #1
0
        public VM_MainWindow()
        {
            AngleList.Add(new VM_Angle()
            {
                Name = "0°", Value = 0
            });
            AngleList.Add(new VM_Angle()
            {
                Name = "90°", Value = 90
            });
            AngleList.Add(new VM_Angle()
            {
                Name = "180°", Value = 180
            });
            AngleList.Add(new VM_Angle()
            {
                Name = "270°", Value = 270
            });

            TextAlignmentList.Add(new VM_TextAlignment()
            {
                Name = "左对齐", Value = SeatManage.ClassModel.ElementTextAlignment.Left
            });
            TextAlignmentList.Add(new VM_TextAlignment()
            {
                Name = "右对齐", Value = SeatManage.ClassModel.ElementTextAlignment.Right
            });
            TextAlignmentList.Add(new VM_TextAlignment()
            {
                Name = "中心对齐", Value = SeatManage.ClassModel.ElementTextAlignment.Center
            });

            TemplateHeight = 300;
            TemplateWidth  = 300;
        }
 public static dynamic GetTSObject(AngleList dynObject)
 {
     if (dynObject is null)
     {
         return(null);
     }
     return(dynObject.teklaObject);
 }