프로젝트

일반

사용자정보

개정판 036650a0

ID036650a01758a31b0f2f1a8e591ed6c8af870eef
상위 f286e80b
하위 d4e73fc9

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

issue #999: Add serialize method to all of controls

Change-Id: I74e404885e8cd107b48ad1921e768137ed14a3da

차이점 보기:

MarkupToPDF/Controls/Shape/CircleControl.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;
......
305 307
            }
306 308
        }
307 309

  
308
        public ControlType ControlType
310
        override public ControlType ControlType
309 311
        {
310 312
            get
311 313
            {
......
433 435
            this.Paint = state;
434 436
            this.SetCircle();
435 437
        }
438

  
439
        /// <summary>
440
        /// Serialize this
441
        /// </summary>
442
        /// <param name="sUserId"></param>
443
        /// <returns></returns>
444
        public override string Serialize()
445
        {
446
            using (S_CircleControl STemp = new S_CircleControl())
447
            {
448
                STemp.TransformPoint = "0|0";
449
                STemp.SizeSet = String.Format("{0}", this.LineSize);
450
                STemp.PaintState = this.Paint;
451
                //STemp.StrokeColor = "#FF00FF00";
452
                STemp.StrokeColor = this.StrokeColor.Color.ToString();
453
                if (this.FillColor != null)
454
                {
455
                    STemp.FillColor = this.FillColor.Color.ToString();
456
                }
457
                STemp.StartPoint = this.StartPoint;
458
                STemp.UserID = this.UserID;
459
                STemp.EndPoint = this.EndPoint;
460
                STemp.TRP = this.TopRightPoint;
461
                STemp.LBP = this.LeftBottomPoint;
462
                STemp.Opac = this.Opacity;
463
                STemp.Angle = this.Angle;
464
                STemp.PointSet = this.PointSet;
465
                STemp.DashSize = this.DashSize;
466
                STemp.Name = this.GetType().Name.ToString();
467
                ///강인구 추가(2017.11.02)
468
                ///Memo 추가
469
                STemp.Memo = this.Memo;
470

  
471
                return "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize()));
472
            };
473
        }
436 474
    }
437 475
}

내보내기 Unified diff

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