개정판 036650a0
issue #999: Add serialize method to all of controls
Change-Id: I74e404885e8cd107b48ad1921e768137ed14a3da
MarkupToPDF/Controls/Etc/ImgControl.cs | ||
---|---|---|
13 | 13 |
using System.Linq; |
14 | 14 |
using MarkupToPDF.Controls.Common; |
15 | 15 |
using MarkupToPDF.Common; |
16 |
using MarkupToPDF.Serialize.Core; |
|
17 |
using MarkupToPDF.Serialize.S_Control; |
|
16 | 18 |
|
17 | 19 |
namespace MarkupToPDF.Controls.Etc |
18 | 20 |
{ |
... | ... | |
248 | 250 |
} |
249 | 251 |
} |
250 | 252 |
|
251 |
public ControlType ControlType |
|
253 |
override public ControlType ControlType
|
|
252 | 254 |
{ |
253 | 255 |
set |
254 | 256 |
{ |
... | ... | |
340 | 342 |
|
341 | 343 |
public Geometry PathData { get; set; } |
342 | 344 |
|
343 |
|
|
345 |
/// <summary> |
|
346 |
/// Serialize this |
|
347 |
/// </summary> |
|
348 |
/// <param name="sUserId"></param> |
|
349 |
/// <returns></returns> |
|
350 |
public override string Serialize() |
|
351 |
{ |
|
352 |
using (S_ImgControl STemp = new S_ImgControl()) |
|
353 |
{ |
|
354 |
STemp.Angle = this.Angle; |
|
355 |
STemp.EndPoint = this.EndPoint; |
|
356 |
STemp.LB = this.LeftBottomPoint; |
|
357 |
STemp.Name = this.GetType().Name; |
|
358 |
STemp.PointSet = this.PointSet; |
|
359 |
STemp.StartPoint = this.StartPoint; |
|
360 |
STemp.UserID = this.UserID; |
|
361 |
STemp.Opac = this.Opacity; |
|
362 |
STemp.TR = this.TopRightPoint; |
|
363 |
STemp.ImagePath = this.FilePath; |
|
364 |
///강인구 추가(2017.11.02) |
|
365 |
///Memo 추가 |
|
366 |
STemp.Memo = this.Memo; |
|
367 |
|
|
368 |
return "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize())); |
|
369 |
} |
|
370 |
} |
|
344 | 371 |
} |
345 | 372 |
} |
내보내기 Unified diff