프로젝트

일반

사용자정보

개정판 036650a0

ID036650a01758a31b0f2f1a8e591ed6c8af870eef
상위 f286e80b
하위 d4e73fc9

백흠경이(가) 5년 이상 전에 추가함

issue #999: Add serialize method to all of controls

Change-Id: I74e404885e8cd107b48ad1921e768137ed14a3da

차이점 보기:

MarkupToPDF/Controls/Polygon/CloudControl.cs
12 12
using System.ComponentModel;
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.Polygon
17 19
{
......
233 235
            }
234 236
        }
235 237

  
236
        public ControlType ControlType
238
        override public ControlType ControlType
237 239
        {
238 240
            set
239 241
            {
......
807 809
            this.SetCloud();
808 810
            
809 811
        }
812

  
813
        /// <summary>
814
        /// Serialize this
815
        /// </summary>
816
        /// <param name="sUserId"></param>
817
        /// <returns></returns>
818
        public override string Serialize()
819
        {
820
            using (S_CloudControl STemp = new S_CloudControl())
821
            {
822
                STemp.TransformPoint = "0|0";
823
                STemp.SizeSet = String.Format("{0}", this.LineSize);
824
                //STemp.StrokeColor = "#FF000FFF";
825
                STemp.StrokeColor = this.StrokeColor.Color.ToString();
826
                STemp.Name = this.GetType().Name.ToString();
827
                STemp.Toler = this.Toler;
828
                STemp.PaintState = this.Paint;
829
                STemp.Opac = this.Opacity;
830
                STemp.UserID = this.UserID;
831
                STemp.IsTrans = this.isTransOn;
832
                STemp.IsChain = this.isChain;
833
                STemp.PointSet = new List<Point>();
834
                STemp.DashSize = this.DashSize;
835
                STemp.StartPoint = this.StartPoint;
836
                STemp.EndPoint = this.EndPoint;
837
                STemp.ArcLength = this.ArcLength;
838
                foreach (var point in this.PointSet)
839
                {
840
                    STemp.PointSet.Add(point);
841
                }
842

  
843
                //STemp.CloudFill = this.Fill;
844
                STemp.ArcLength = this.ArcLength;
845
                ///강인구 추가(2017.11.02)
846
                ///Memo 추가
847
                STemp.Memo = this.Memo;
848

  
849
                return "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize()));
850
            }
851
        }
852

  
810 853
        #region Method
811 854
        public void ApplyOverViewData()
812 855
        {

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)