프로젝트

일반

사용자정보

개정판 b2d0f316

IDb2d0f316125ad5439e7530cf5ec796805b5d1dd4
상위 ff2f8d1d
하위 5c3caba6

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

Feature: 선택한 객체를 앞으로(+)/뒤로(-) 보내기 기능 추가

Change-Id: I9130a93cfdb2d079f28258f3d669a6f532695f89

차이점 보기:

MarkupToPDF/Controls/Polygon/InkControl.cs
48 48
                this.Paint = item.Paint;
49 49
                this.EndPoint = new Point(item.EndPoint.X, item.EndPoint.Y);
50 50
                this.Memo = item.Memo;
51
                this.ZIndex = item.ZIndex;
51 52
            }
52 53
        }
53 54

  
......
596 597
        /// <returns></returns>
597 598
        public override string Serialize()
598 599
        {
599
            using (S_PolyControl STemp = new S_PolyControl())
600
            {
601
                STemp.TransformPoint = "0|0";
602
                STemp.SizeSet = String.Format("{0}", this.LineSize);
603
                STemp.StrokeColor = this.StrokeColor.Color.ToString();
604
                //STemp.StrokeColor = "#FF000FFF";
605
                STemp.Name = this.GetType().Name.ToString();
606
                //STemp.Toler = this.Toler;
607
                STemp.PaintState = this.Paint;
608
                STemp.Opac = this.Opacity;
609
                STemp.UserID = this.UserID;
610
                STemp.PaintState = this.Paint;
600
            using (S_PolyControl ctrl = new S_PolyControl())
601
            {
602
                ctrl.TransformPoint = "0|0";
603
                ctrl.SizeSet = String.Format("{0}", this.LineSize);
604
                ctrl.StrokeColor = this.StrokeColor.Color.ToString();
605
                //ctrl.StrokeColor = "#FF000FFF";
606
                ctrl.Name = this.GetType().Name.ToString();
607
                //ctrl.Toler = this.Toler;
608
                ctrl.PaintState = this.Paint;
609
                ctrl.Opac = this.Opacity;
610
                ctrl.UserID = this.UserID;
611
                ctrl.PaintState = this.Paint;
611 612
                //강인구 추가(Chain인지 Polygon인지 구분)
612
                STemp.Type = this.ControlType;
613
                //STemp.IsTrans = this.isTransOn;
614
                //STemp.IsChain = this.isChain;
615
                STemp.PointSet = new List<Point>();
616
                STemp.DashSize = this.DashSize;
617
                STemp.IsCompleted = this.IsCompleted;
618
                STemp.StartPoint = this.StartPoint;
619
                STemp.EndPoint = this.EndPoint;
613
                ctrl.Type = this.ControlType;
614
                //ctrl.IsTrans = this.isTransOn;
615
                //ctrl.IsChain = this.isChain;
616
                ctrl.PointSet = new List<Point>();
617
                ctrl.DashSize = this.DashSize;
618
                ctrl.IsCompleted = this.IsCompleted;
619
                ctrl.StartPoint = this.StartPoint;
620
                ctrl.EndPoint = this.EndPoint;
620 621
                foreach (var point in this.PointSet)
621 622
                {
622
                    STemp.PointSet.Add(point);
623
                    ctrl.PointSet.Add(point);
623 624
                }
624 625
                ///강인구 추가(2017.11.02)
625 626
                ///Memo 추가
626
                STemp.Memo = this.Memo;
627
                ctrl.Memo = this.Memo;
627 628

  
628
                return "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize()));
629
                ctrl.ZIndex = this.ZIndex;
630

  
631
                return "|DZ|" + JsonSerializerHelper.CompressString((ctrl.JsonSerialize()));
629 632
            };
630 633
        }
631 634

  
......
656 659
                    Paint = s.PaintState,
657 660
                    EndPoint = s.EndPoint,
658 661
                    //PointC = s.PointC,
659
                    Memo = s.Memo
662
                    Memo = s.Memo,
663
                    ZIndex = s.ZIndex
660 664
                };
661 665
            }
662 666
        }

내보내기 Unified diff

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