개정판 036650a0
issue #999: Add serialize method to all of controls
Change-Id: I74e404885e8cd107b48ad1921e768137ed14a3da
MarkupToPDF/Controls/Line/ArrowArcControl.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.Line |
17 | 19 |
{ |
... | ... | |
283 | 285 |
} |
284 | 286 |
} |
285 | 287 |
|
286 |
public ControlType ControlType |
|
288 |
override public ControlType ControlType
|
|
287 | 289 |
{ |
288 | 290 |
get |
289 | 291 |
{ |
... | ... | |
463 | 465 |
{ |
464 | 466 |
this.OverViewPathData = this.PathData; |
465 | 467 |
} |
468 |
|
|
469 |
/// <summary> |
|
470 |
/// Serialize this |
|
471 |
/// </summary> |
|
472 |
/// <param name="sUserId"></param> |
|
473 |
/// <returns></returns> |
|
474 |
public override string Serialize() |
|
475 |
{ |
|
476 |
using (S_ArrowArcControl STemp = new S_ArrowArcControl()) |
|
477 |
{ |
|
478 |
STemp.TransformPoint = "0|0"; |
|
479 |
STemp.PointSet = this.PointSet; |
|
480 |
STemp.SizeSet = String.Format("{0}", this.LineSize); |
|
481 |
//STemp.StrokeColor = "#FF000FFF"; |
|
482 |
STemp.StrokeColor = this.StrokeColor.Color.ToString(); |
|
483 |
STemp.StartPoint = this.StartPoint; |
|
484 |
STemp.UserID = this.UserID; |
|
485 |
STemp.Opac = this.Opacity; |
|
486 |
STemp.MidPoint = this.MidPoint; |
|
487 |
STemp.EndPoint = this.EndPoint; |
|
488 |
STemp.IsTransOn = this.isTransOn; |
|
489 |
STemp.DashSize = this.DashSize; |
|
490 |
STemp.Clock = this.Clock; |
|
491 |
//STemp.ArcStyleSet = this.ControlType; |
|
492 |
STemp.Name = this.GetType().Name.ToString(); |
|
493 |
|
|
494 |
///강인구 추가(2017.11.02) |
|
495 |
///Memo 추가 |
|
496 |
STemp.Memo = this.Memo; |
|
497 |
|
|
498 |
return "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize())); |
|
499 |
} |
|
500 |
} |
|
466 | 501 |
} |
467 | 502 |
} |
내보내기 Unified diff