프로젝트

일반

사용자정보

개정판 036650a0

ID036650a01758a31b0f2f1a8e591ed6c8af870eef
상위 f286e80b
하위 d4e73fc9

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

issue #999: Add serialize method to all of controls

Change-Id: I74e404885e8cd107b48ad1921e768137ed14a3da

차이점 보기:

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

  
16 18
namespace MarkupToPDF.Controls.Shape
17 19
{
......
251 253
            }
252 254
        }
253 255

  
254
        public ControlType ControlType
256
        override public ControlType ControlType
255 257
        {
256 258
            get
257 259
            {
......
399 401
            this.EndPoint = new Point(this.PointSet[2].X, this.PointSet[2].Y);
400 402
        }
401 403

  
404
        /// <summary>
405
        /// Serialize this
406
        /// </summary>
407
        /// <param name="sUserId"></param>
408
        /// <returns></returns>
409
        public override string Serialize()
410
        {
411
            using (S_TriControl STemp = new S_TriControl())
412
            {
413
                STemp.TransformPoint = "0|0";
414
                STemp.Paint = this.Paint;
415
                STemp.SizeSet = String.Format("{0}", this.LineSize);
416
                //STemp.StrokeColor = "#FF00FF00";
417
                STemp.StrokeColor = this.StrokeColor.Color.ToString();
418
                if (this.FillColor != null)
419
                {
420
                    STemp.FillColor = this.FillColor.Color.ToString();
421
                }
422
                STemp.StartPoint = this.StartPoint;
423
                STemp.EndPoint = this.EndPoint;
424
                STemp.MidPoint = this.MidPoint;
425
                STemp.Opac = this.Opacity;
426
                STemp.UserID = this.UserID;
427
                STemp.PointSet = this.PointSet;
428
                STemp.Angle = this.Angle;
429
                STemp.DashSize = this.DashSize;
430
                STemp.Name = this.GetType().Name.ToString();
431
                ///강인구 추가(2017.11.02)
432
                ///Memo 추가
433
                STemp.Memo = this.Memo;
434

  
435
                return "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize()));
436
            }
437
        }
438

  
402 439
        //public void ChangePaint(PaintSet state)
403 440
        //{
404 441
        //    this.Paint = state;

내보내기 Unified diff

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