프로젝트

일반

사용자정보

개정판 036650a0

ID036650a01758a31b0f2f1a8e591ed6c8af870eef
상위 f286e80b
하위 d4e73fc9

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

issue #999: Add serialize method to all of controls

Change-Id: I74e404885e8cd107b48ad1921e768137ed14a3da

차이점 보기:

MarkupToPDF/Controls/Etc/SymControl.cs
12 12
using System.Collections.Generic;
13 13
using MarkupToPDF.Controls.Common;
14 14
using MarkupToPDF.Common;
15

  
15
using MarkupToPDF.Serialize.Core;
16
using MarkupToPDF.Serialize.S_Control;
16 17

  
17 18
namespace MarkupToPDF.Controls.Etc
18 19
{
......
276 277
            }
277 278
        }
278 279

  
279
        public ControlType ControlType
280
        override public ControlType ControlType
280 281
        {
281 282
            set
282 283
            {
......
367 368
            this.Paint = state;
368 369
            this.SetSymPath();
369 370
        }
371

  
372
        /// <summary>
373
        /// Serialize this
374
        /// </summary>
375
        /// <param name="sUserId"></param>
376
        /// <returns></returns>
377
        public override string Serialize()
378
        {
379
            using (S_SymControl STemp = new S_SymControl())
380
            {
381
                STemp.TransformPoint = "0|0";
382
                STemp.PointSet = this.PointSet;
383
                STemp.UserID = this.UserID;
384
                STemp.SizeSet = String.Format("{0}", this.LineSize.ToString());
385
                STemp.PaintState = this.Paint;
386
                STemp.PathInfo = this.PathData.ToString();
387
                STemp.StrokeColor = this.StrokeColor.Color.ToString();
388
                STemp.StartPoint = this.StartPoint;
389
                STemp.Angle = this.Angle;
390
                STemp.EndPoint = this.EndPoint;
391
                STemp.LB = this.LeftBottomPoint;
392
                STemp.TR = this.TopRightPoint;
393
                STemp.Opac = this.Opacity;
394
                STemp.Name = this.GetType().Name.ToString();
395

  
396
                return "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize()));
397
            }
398
        }
370 399
    }
371 400
}

내보내기 Unified diff

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