프로젝트

일반

사용자정보

개정판 036650a0

ID036650a01758a31b0f2f1a8e591ed6c8af870eef
상위 f286e80b
하위 d4e73fc9

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

issue #999: Add serialize method to all of controls

Change-Id: I74e404885e8cd107b48ad1921e768137ed14a3da

차이점 보기:

MarkupToPDF/Controls/Line/LineControl.cs
12 12
using System.Collections.Generic;
13 13
using MarkupToPDF.Controls.Common;
14 14
using MarkupToPDF.Common;
15
using MarkupToPDF.Serialize.S_Control;
16
using MarkupToPDF.Serialize.Core;
15 17

  
16 18
namespace MarkupToPDF.Controls.Line
17 19
{
......
297 299
            }
298 300
        }
299 301

  
300
        public ControlType ControlType
302
        override public ControlType ControlType
301 303
        {
302 304
            get
303 305
            {
......
481 483
                this.OverViewPathData = PathData;
482 484
            }
483 485
        }
486

  
487
        /// <summary>
488
        /// Serialize this
489
        /// </summary>
490
        /// <param name="sUserId"></param>
491
        /// <returns></returns>
492
        public override string Serialize()
493
        {
494
            using (S_LineControl STemp = new S_LineControl())
495
            {
496
                STemp.TransformPoint = "0|0";
497
                STemp.PointSet = this.PointSet;
498
                STemp.SizeSet = String.Format("{0}", this.LineSize);
499
                STemp.LineStyleSet = this.LineStyleSet;
500
                //STemp.StrokeColor = "#FF00FF00";
501
                STemp.StrokeColor = this.StrokeColor.Color.ToString();
502
                STemp.StartPoint = this.StartPoint;
503
                STemp.EndPoint = this.EndPoint;
504
                STemp.UserID = this.UserID;
505
                STemp.Opac = this.Opacity;
506
                STemp.DashSize = this.DashSize;
507
                STemp.Interval = this.Interval;
508
                STemp.DimSize = this.DimSize;
509
                STemp.Name = this.GetType().Name.ToString();
510

  
511
                ///강인구 추가(2017.11.02)
512
                ///Memo 추가
513
                STemp.Memo = this.Memo;
514

  
515
                return "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize()));
516
            }
517
        }
484 518
    }
485 519
}

내보내기 Unified diff

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