프로젝트

일반

사용자정보

개정판 036650a0

ID036650a01758a31b0f2f1a8e591ed6c8af870eef
상위 f286e80b
하위 d4e73fc9

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

issue #999: Add serialize method to all of controls

Change-Id: I74e404885e8cd107b48ad1921e768137ed14a3da

차이점 보기:

MarkupToPDF/Controls/Polygon/InkControl.cs
1 1
using MarkupToPDF.Common;
2 2
using MarkupToPDF.Controls.Common;
3
using MarkupToPDF.Serialize.Core;
4
using MarkupToPDF.Serialize.S_Control;
3 5
using System;
4 6
using System.Collections.Generic;
5 7
using System.ComponentModel;
......
275 277
            }
276 278
        }
277 279

  
278
        public ControlType ControlType
280
        override public ControlType ControlType
279 281
        {
280 282
            set
281 283
            {
......
536 538

  
537 539
        }
538 540

  
541
        /// <summary>
542
        /// Serialize this
543
        /// </summary>
544
        /// <param name="sUserId"></param>
545
        /// <returns></returns>
546
        public override string Serialize()
547
        {
548
            using (S_PolyControl STemp = new S_PolyControl())
549
            {
550
                STemp.TransformPoint = "0|0";
551
                STemp.SizeSet = String.Format("{0}", this.LineSize);
552
                STemp.StrokeColor = this.StrokeColor.Color.ToString();
553
                //STemp.StrokeColor = "#FF000FFF";
554
                STemp.Name = this.GetType().Name.ToString();
555
                //STemp.Toler = this.Toler;
556
                STemp.PaintState = this.Paint;
557
                STemp.Opac = this.Opacity;
558
                STemp.UserID = this.UserID;
559
                STemp.PaintState = this.Paint;
560
                //강인구 추가(Chain인지 Polygon인지 구분)
561
                STemp.Type = this.ControlType;
562
                //STemp.IsTrans = this.isTransOn;
563
                //STemp.IsChain = this.isChain;
564
                STemp.PointSet = new List<Point>();
565
                STemp.DashSize = this.DashSize;
566
                STemp.IsCompleted = this.IsCompleted;
567
                STemp.StartPoint = this.StartPoint;
568
                STemp.EndPoint = this.EndPoint;
569
                foreach (var point in this.PointSet)
570
                {
571
                    STemp.PointSet.Add(point);
572
                }
573
                ///강인구 추가(2017.11.02)
574
                ///Memo 추가
575
                STemp.Memo = this.Memo;
576

  
577
                return "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize()));
578
            };
579
        }
580

  
539 581
        //public PaintSet Paint { get; set; }
540 582

  
541 583

  

내보내기 Unified diff

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