개정판 e1b36bc0
Feature: Grouping 기능 추가(Ctrl+G : Group, Ctrl+Shift+G : Ungroup)
Change-Id: I99a3309acd55799ff7101522feaa035225b80e48
MarkupToPDF/Controls/Etc/ImgControl.cs | ||
---|---|---|
45 | 45 |
} |
46 | 46 |
public override void Copy(CommentUserInfo lhs) |
47 | 47 |
{ |
48 |
if(lhs is ImgControl imgControl)
|
|
48 |
if(lhs is ImgControl item)
|
|
49 | 49 |
{ |
50 |
this.CommentAngle = imgControl.CommentAngle; |
|
51 |
this.StartPoint = new Point(imgControl.StartPoint.X, imgControl.StartPoint.Y); |
|
52 |
this.TopRightPoint = new Point(imgControl.TopRightPoint.X, imgControl.TopRightPoint.Y); |
|
53 |
this.EndPoint = new Point(imgControl.EndPoint.X, imgControl.EndPoint.Y); |
|
54 |
this.LeftBottomPoint = new Point(imgControl.LeftBottomPoint.X, imgControl.LeftBottomPoint.Y); |
|
55 |
this.PointSet = imgControl.PointSet.ConvertAll(x => new Point(x.X, x.Y)); |
|
56 |
this.Opacity = imgControl.Opacity; |
|
57 |
this.FilePath = imgControl.FilePath; |
|
58 |
this.UserID = imgControl.UserID; |
|
59 |
this.ImageData = imgControl.ImageData; |
|
60 |
this.Memo = imgControl.Memo; |
|
61 |
this.ZIndex = imgControl.ZIndex; |
|
50 |
this.CommentAngle = item.CommentAngle; |
|
51 |
this.StartPoint = new Point(item.StartPoint.X, item.StartPoint.Y); |
|
52 |
this.TopRightPoint = new Point(item.TopRightPoint.X, item.TopRightPoint.Y); |
|
53 |
this.EndPoint = new Point(item.EndPoint.X, item.EndPoint.Y); |
|
54 |
this.LeftBottomPoint = new Point(item.LeftBottomPoint.X, item.LeftBottomPoint.Y); |
|
55 |
this.PointSet = item.PointSet.ConvertAll(x => new Point(x.X, x.Y)); |
|
56 |
this.Opacity = item.Opacity; |
|
57 |
this.FilePath = item.FilePath; |
|
58 |
this.UserID = item.UserID; |
|
59 |
this.ImageData = item.ImageData; |
|
60 |
this.Memo = item.Memo; |
|
61 |
this.ZIndex = item.ZIndex; |
|
62 |
GroupID = item.GroupID; |
|
62 | 63 |
} |
63 | 64 |
} |
64 | 65 |
|
... | ... | |
524 | 525 |
ctrl.Memo = this.Memo; |
525 | 526 |
|
526 | 527 |
ctrl.ZIndex = this.ZIndex; |
528 |
ctrl.GroupID = this.GroupID; |
|
527 | 529 |
|
528 | 530 |
return "|DZ|" + JsonSerializerHelper.CompressString((ctrl.JsonSerialize())); |
529 | 531 |
} |
... | ... | |
572 | 574 |
UserID = s.UserID, |
573 | 575 |
ImageData = img.Source, |
574 | 576 |
Memo = s.Memo, |
577 |
GroupID = s.GroupID, |
|
575 | 578 |
ZIndex = s.ZIndex |
576 | 579 |
}; |
577 | 580 |
|
내보내기 Unified diff