개정판 036650a0
issue #999: Add serialize method to all of controls
Change-Id: I74e404885e8cd107b48ad1921e768137ed14a3da
MarkupToPDF/Controls/Etc/SymControlN.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.Etc |
17 | 19 |
{ |
... | ... | |
279 | 281 |
} |
280 | 282 |
} |
281 | 283 |
|
282 |
public ControlType ControlType |
|
284 |
override public ControlType ControlType
|
|
283 | 285 |
{ |
284 | 286 |
set |
285 | 287 |
{ |
... | ... | |
333 | 335 |
this.TopRightPoint = new Point(this.PointSet[3].X, this.PointSet[3].Y); |
334 | 336 |
this.SetViewBox(); |
335 | 337 |
} |
338 |
|
|
339 |
/// <summary> |
|
340 |
/// Serialize this |
|
341 |
/// </summary> |
|
342 |
/// <param name="sUserId"></param> |
|
343 |
/// <returns></returns> |
|
344 |
public override string Serialize() |
|
345 |
{ |
|
346 |
using (S_SymControlN STemp = new S_SymControlN()) |
|
347 |
{ |
|
348 |
STemp.TransformPoint = "0|0"; |
|
349 |
STemp.PointSet = this.PointSet; |
|
350 |
//STemp.XamlData = this.PathXathData; |
|
351 |
STemp.UserID = this.UserID; |
|
352 |
STemp.DBData = this.PathXathData; |
|
353 |
//STemp.StrokeColor = this.StrokeColor.Color.ToString(); |
|
354 |
STemp.StartPoint = this.StartPoint; |
|
355 |
STemp.Angle = this.Angle; |
|
356 |
STemp.EndPoint = this.EndPoint; |
|
357 |
STemp.LB = this.LeftBottomPoint; |
|
358 |
STemp.TR = this.TopRightPoint; |
|
359 |
STemp.Opac = this.Opacity; |
|
360 |
STemp.Name = this.GetType().Name.ToString(); |
|
361 |
|
|
362 |
return "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize())); |
|
363 |
} |
|
364 |
} |
|
336 | 365 |
} |
337 | 366 |
} |
338 | 367 |
|
내보내기 Unified diff