개정판 036650a0
issue #999: Add serialize method to all of controls
Change-Id: I74e404885e8cd107b48ad1921e768137ed14a3da
MarkupToPDF/Controls/Shape/RectangleControl.cs | ||
---|---|---|
10 | 10 |
using System.Windows.Media; |
11 | 11 |
using MarkupToPDF.Controls.Common; |
12 | 12 |
using MarkupToPDF.Common; |
13 |
using MarkupToPDF.Serialize.Core; |
|
14 |
using MarkupToPDF.Serialize.S_Control; |
|
13 | 15 |
|
14 | 16 |
namespace MarkupToPDF.Controls.Shape |
15 | 17 |
{ |
... | ... | |
201 | 203 |
} |
202 | 204 |
} |
203 | 205 |
|
204 |
public ControlType ControlType |
|
206 |
override public ControlType ControlType
|
|
205 | 207 |
{ |
206 | 208 |
set |
207 | 209 |
{ |
... | ... | |
546 | 548 |
|
547 | 549 |
public event PropertyChangedEventHandler PropertyChanged; |
548 | 550 |
|
551 |
/// <summary> |
|
552 |
/// Serialize this |
|
553 |
/// </summary> |
|
554 |
/// <param name="sUserId"></param> |
|
555 |
/// <returns></returns> |
|
556 |
public override string Serialize() |
|
557 |
{ |
|
558 |
using (S_RectControl STemp = new S_RectControl()) |
|
559 |
{ |
|
560 |
STemp.TransformPoint = "0|0"; |
|
561 |
STemp.SizeSet = String.Format("{0}", this.LineSize); |
|
562 |
STemp.PaintState = this.Paint; |
|
563 |
STemp.PointSet = this.PointSet; |
|
564 |
//STemp.StrokeColor = "#FF00FF00"; |
|
565 |
STemp.StrokeColor = this.StrokeColor.Color.ToString(); |
|
566 |
if (this.FillColor != null) |
|
567 |
{ |
|
568 |
STemp.FillColor = this.FillColor.Color.ToString(); |
|
569 |
} |
|
570 |
STemp.StartPoint = this.StartPoint; |
|
571 |
STemp.UserID = this.UserID; |
|
572 |
//STemp.Angle = this.a; |
|
573 |
STemp.EndPoint = this.EndPoint; |
|
574 |
STemp.LB = this.LeftBottomPoint; |
|
575 |
STemp.TR = this.TopRightPoint; |
|
576 |
STemp.DashSize = this.DashSize; |
|
577 |
STemp.Opac = this.Opacity; |
|
578 |
STemp.Name = this.GetType().Name.ToString(); |
|
579 |
///강인구 추가(2017.11.02) |
|
580 |
///Memo 추가 |
|
581 |
STemp.Memo = this.Memo; |
|
582 |
|
|
583 |
return "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize())); |
|
584 |
}; |
|
585 |
} |
|
586 |
|
|
549 | 587 |
public void Dispose() |
550 | 588 |
{ |
551 | 589 |
GC.Collect(); |
내보내기 Unified diff