개정판 7f669d88
Fix: RedoCommand 기능 개선
Change-Id: I00170ea768f0628d8b70b6c8bae1675eec010152
KCOM/Events/RedoCommand.cs | ||
---|---|---|
56 | 56 |
{ |
57 | 57 |
case (EventType.Create): |
58 | 58 |
{ |
59 |
List<CommentUserInfo> comments = new List<CommentUserInfo>(); |
|
59 | 60 |
foreach (var item in redo.MarkupDataColl) |
60 | 61 |
{ |
61 |
ViewerDataModel.Instance.MarkupControls_USER.Add(item.Markup); |
|
62 |
item.Markup.Load(); |
|
63 |
item.Markup.UpdateControl(); |
|
64 |
comments.Add(item.Markup); |
|
62 | 65 |
|
63 | 66 |
ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.MarkupListUpdate( |
64 |
MarkupParser.MarkupToString(item.Markup, App.ViewInfo.UserID), EventType.Create, null, null); |
|
67 |
MarkupParser.MarkupToString(item.Markup, App.ViewInfo.UserID), EventType.Create, null, null);
|
|
65 | 68 |
} |
69 |
|
|
70 |
var adorner = new AdornerFinal(comments); |
|
71 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.SelectLayer.Children.Add(adorner); |
|
66 | 72 |
} |
67 | 73 |
break; |
68 | 74 |
case (EventType.Delete): |
69 | 75 |
{ |
70 | 76 |
foreach (var item in redo.MarkupDataColl) |
71 | 77 |
{ |
72 |
ViewerDataModel.Instance.MarkupControls_USER.Remove(item.Markup);
|
|
78 |
ViewerDataModel.Instance.MarkupControls_USER.Remove((item.Markup));
|
|
73 | 79 |
|
74 | 80 |
ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.MarkupListUpdate( |
75 | 81 |
null, EventType.Delete, item.Markup.CommentID, null); |
... | ... | |
91 | 97 |
|
92 | 98 |
comment.Add(item.Markup); |
93 | 99 |
} |
94 |
final = new AdornerFinal(comment);
|
|
95 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.SelectLayer.Children.Add(final);
|
|
96 |
SelectionSet.Instance.UnSelect(Common.ViewerDataModel.Instance.SystemMain.dzMainMenu); |
|
100 |
var adoner = new AdornerFinal(comment);
|
|
101 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.SelectLayer.Children.Add(adoner);
|
|
102 |
///SelectionSet.Instance.UnSelect(Common.ViewerDataModel.Instance.SystemMain.dzMainMenu);
|
|
97 | 103 |
} |
98 | 104 |
break; |
99 | 105 |
} |
내보내기 Unified diff