개정판 d62c0439
issue #923: remove undo after selecting item, fixed multi selection logic
Change-Id: Id2a6e63336747aeaf3337218f5e2e3b35fba5dfa
KCOM/Common/SelectionSet.cs | ||
---|---|---|
25 | 25 |
using System.Xml; |
26 | 26 |
using System.Xml.Serialization; |
27 | 27 |
|
28 |
namespace KCOM |
|
28 |
namespace KCOM.Common
|
|
29 | 29 |
{ |
30 | 30 |
public class SelectionSet |
31 | 31 |
{ |
... | ... | |
49 | 49 |
} |
50 | 50 |
} |
51 | 51 |
|
52 |
public List<CommentUserInfo> SelectedItems |
|
53 |
{ |
|
54 |
get |
|
55 |
{ |
|
56 |
List<CommentUserInfo> res = new List<CommentUserInfo>(); |
|
57 |
foreach (var item in Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.SelectLayer.Children) |
|
58 |
{ |
|
59 |
if (item.GetType().Name == "AdornerFinal") |
|
60 |
{ |
|
61 |
foreach (var InnerItem in (item as Controls.AdornerFinal).MemberSet.Cast<Controls.AdornerMember>()) |
|
62 |
{ |
|
63 |
res.Add(InnerItem.DrawingData as MarkupToPDF.Common.CommentUserInfo); |
|
64 |
} |
|
65 |
} |
|
66 |
} |
|
67 |
|
|
68 |
return res; |
|
69 |
} |
|
70 |
} |
|
71 |
|
|
52 | 72 |
/// <summary> |
53 | 73 |
/// select item which's bouding rectangle is inside of given rect |
54 | 74 |
/// </summary> |
내보내기 Unified diff