개정판 036650a0
issue #999: Add serialize method to all of controls
Change-Id: I74e404885e8cd107b48ad1921e768137ed14a3da
MarkupToPDF/Controls/Shape/RectCloudControl.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 |
{ |
... | ... | |
248 | 250 |
SetValue(IsSelectedProperty, value); |
249 | 251 |
} |
250 | 252 |
} |
251 |
public ControlType ControlType |
|
253 |
|
|
254 |
override public ControlType ControlType |
|
252 | 255 |
{ |
253 | 256 |
get |
254 | 257 |
{ |
... | ... | |
555 | 558 |
//pathFigure.IsFilled = true; |
556 | 559 |
return pathFigure; |
557 | 560 |
} |
561 |
|
|
562 |
/// <summary> |
|
563 |
/// Serialize this |
|
564 |
/// </summary> |
|
565 |
/// <param name="sUserId"></param> |
|
566 |
/// <returns></returns> |
|
567 |
public override string Serialize() |
|
568 |
{ |
|
569 |
using (S_RectCloudControl STemp = new S_RectCloudControl()) |
|
570 |
{ |
|
571 |
STemp.TransformPoint = "0|0"; |
|
572 |
STemp.PointSet = this.PointSet; |
|
573 |
STemp.SizeSet = String.Format("{0}", this.LineSize); |
|
574 |
//STemp.StrokeColor = "#FF00FF00"; |
|
575 |
STemp.StrokeColor = this.StrokeColor.Color.ToString(); |
|
576 |
STemp.StartPoint = this.StartPoint; |
|
577 |
STemp.UserID = this.UserID; |
|
578 |
STemp.Opac = this.Opacity; |
|
579 |
STemp.TR = this.TopRightPoint; |
|
580 |
STemp.LB = this.LeftBottomPoint; |
|
581 |
STemp.EndPoint = this.EndPoint; |
|
582 |
STemp.PaintState = this.Paint; |
|
583 |
STemp.DashSize = this.DashSize; |
|
584 |
STemp.ArcLength = this.ArcLength; |
|
585 |
STemp.Name = this.GetType().Name.ToString(); |
|
586 |
///강인구 추가(2017.11.02) |
|
587 |
///Memo 추가 |
|
588 |
STemp.Memo = this.Memo; |
|
589 |
|
|
590 |
return "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize())); |
|
591 |
} |
|
592 |
} |
|
558 | 593 |
} |
559 | 594 |
} |
내보내기 Unified diff