프로젝트

일반

사용자정보

개정판 036650a0

ID036650a01758a31b0f2f1a8e591ed6c8af870eef
상위 f286e80b
하위 d4e73fc9

백흠경이(가) 5년 이상 전에 추가함

issue #999: Add serialize method to all of controls

Change-Id: I74e404885e8cd107b48ad1921e768137ed14a3da

차이점 보기:

MarkupToPDF/Controls/Cad/OverlapWhiteControlcs.cs
10 10
using System.Windows.Media;
11 11
using MarkupToPDF.Controls.Common;
12 12
using MarkupToPDF.Common;
13
using MarkupToPDF.Serialize.Core;
14
using MarkupToPDF.Serialize.S_Control;
13 15

  
14 16
namespace MarkupToPDF.Controls.Cad
15 17
{
......
202 204
            }
203 205
        }
204 206

  
205
        public ControlType ControlType
207
        override public ControlType ControlType
206 208
        {
207 209
            set
208 210
            {
......
549 551
            this.SetRectPath();
550 552
        }
551 553

  
554
        /// <summary>
555
        /// Serialize this
556
        /// </summary>
557
        /// <param name="sUserId"></param>
558
        /// <returns></returns>
559
        public override string Serialize()
560
        {
561
            using (S_OverlapWhiteControl STemp = new S_OverlapWhiteControl())
562
            {
563
                STemp.TransformPoint = "0|0";
564
                STemp.SizeSet = String.Format("{0}", this.LineSize);
565
                STemp.PaintState = this.Paint;
566
                STemp.PointSet = this.PointSet;
567
                //STemp.StrokeColor = "#FF00FF00";
568
                STemp.StrokeColor = this.StrokeColor.Color.ToString();
569
                if (this.FillColor != null)
570
                {
571
                    STemp.FillColor = this.FillColor.Color.ToString();
572
                }
573
                STemp.StartPoint = this.StartPoint;
574
                STemp.UserID = this.UserID;
575
                STemp.EndPoint = this.EndPoint;
576
                STemp.LB = this.LeftBottomPoint;
577
                STemp.TR = this.TopRightPoint;
578
                STemp.DashSize = this.DashSize;
579
                STemp.Opac = this.Opacity;
580
                STemp.Name = this.GetType().Name.ToString();
581
                STemp.Memo = this.Memo;
582

  
583
                return "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize()));
584
            };
585
        }
586

  
552 587
        public event PropertyChangedEventHandler PropertyChanged;
553 588

  
554 589
        public void Dispose()

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)