개정판 b37ef4b3
issue #923: add CopyCommand, CutCommand, PasteCommand
Change-Id: I3688e8a8d3b2d17eb76f70914dd79961cd858d0b
KCOM/Common/SelectionSet.cs | ||
---|---|---|
70 | 70 |
} |
71 | 71 |
|
72 | 72 |
/// <summary> |
73 |
/// select all controls |
|
74 |
/// - unselect selected items |
|
75 |
/// - adornerset을 생성하고 SelectLayer에 추가한다 |
|
76 |
/// </summary> |
|
77 |
public void SelectAll() |
|
78 |
{ |
|
79 |
/// 선택된 어도너가 있을 시 취소하고 전체 선택 |
|
80 |
this.UnSelect(Common.ViewerDataModel.Instance.SystemMain.dzMainMenu); |
|
81 |
|
|
82 |
List<MarkupToPDF.Common.CommentUserInfo> adornerSet = new List<MarkupToPDF.Common.CommentUserInfo>(); |
|
83 |
var controls = ViewerDataModel.Instance.MarkupControls_USER.Where(data => data.GetType().Name != "" |
|
84 |
&& data.Visibility != Visibility.Hidden).ToList(); |
|
85 |
|
|
86 |
foreach (var item in controls) adornerSet.Add(item); |
|
87 |
|
|
88 |
if (adornerSet.Count > 0) |
|
89 |
{ |
|
90 |
Controls.AdornerFinal final = new Controls.AdornerFinal(adornerSet); |
|
91 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.SelectLayer.Children.Add(final); |
|
92 |
} |
|
93 |
} |
|
94 |
|
|
95 |
/// <summary> |
|
73 | 96 |
/// select item which's bouding rectangle is inside of given rect |
74 | 97 |
/// </summary> |
75 | 98 |
/// <author>humkyung</author> |
내보내기 Unified diff