프로젝트

일반

사용자정보

개정판 036650a0

ID036650a01758a31b0f2f1a8e591ed6c8af870eef
상위 f286e80b
하위 d4e73fc9

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

issue #999: Add serialize method to all of controls

Change-Id: I74e404885e8cd107b48ad1921e768137ed14a3da

차이점 보기:

MarkupToPDF/Controls/Polygon/PolygonControl.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;
......
274 276
            }
275 277
        }
276 278

  
277
        public ControlType ControlType
279
        override public ControlType ControlType
278 280
        {
279 281
            set
280 282
            {
......
493 495

  
494 496
        }
495 497

  
498
        /// <summary>
499
        /// Serialize this
500
        /// </summary>
501
        /// <param name="sUserId"></param>
502
        /// <returns></returns>
503
        public override string Serialize()
504
        {
505
            using (S_PolyControl STemp = new S_PolyControl())
506
            {
507
                STemp.TransformPoint = "0|0";
508
                STemp.SizeSet = String.Format("{0}", this.LineSize);
509
                STemp.StrokeColor = this.StrokeColor.Color.ToString();
510
                //STemp.StrokeColor = "#FF000FFF";
511
                STemp.Name = this.GetType().Name.ToString();
512
                //STemp.Toler = this.Toler;
513
                STemp.PaintState = this.Paint;
514
                STemp.Opac = this.Opacity;
515
                STemp.UserID = this.UserID;
516
                STemp.PaintState = this.Paint;
517
                //강인구 추가(Chain인지 Polygon인지 구분)
518
                STemp.Type = this.ControlType;
519
                //STemp.IsTrans = this.isTransOn;
520
                //STemp.IsChain = this.isChain;
521
                STemp.PointSet = new List<Point>();
522
                STemp.DashSize = this.DashSize;
523
                STemp.StartPoint = this.StartPoint;
524
                STemp.EndPoint = this.EndPoint;
525
                STemp.IsCompleted = this.IsCompleted;
526
                foreach (var point in this.PointSet)
527
                {
528
                    STemp.PointSet.Add(point);
529
                }
530
                ///강인구 추가(2017.11.02)
531
                ///Memo 추가
532
                STemp.Memo = this.Memo;
533

  
534
                return "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize()));
535
            }
536
        }
537

  
496 538
        //public PaintSet Paint { get; set; }
497 539

  
498 540

  

내보내기 Unified diff

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