개정판 19d602e0
Fix: Undo/Redo 기능 개선
Change-Id: I788a6fe870ed5ee7096f3ee461227588cf758388
KCOM/Views/MainMenu.xaml.cs | ||
---|---|---|
2692 | 2692 |
currentControl.EndPoint, |
2693 | 2693 |
currentControl.TopRightPoint, |
2694 | 2694 |
}; |
2695 |
UndoData multi_UndoData = new UndoData(); |
|
2696 | 2695 |
UndoDataGroup = new UndoDataGroup() |
2697 | 2696 |
{ |
2698 | 2697 |
IsUndo = false, |
... | ... | |
2704 | 2703 |
}); |
2705 | 2704 |
|
2706 | 2705 |
//multi_UndoData = dzMainMenu.Control_Style(currentControl as MarkupToPDF.Common.CommentUserInfo); |
2707 |
multi_UndoData = Control_Style(currentControl as MarkupToPDF.Common.CommentUserInfo);
|
|
2708 |
UndoDataGroup.MarkupDataColl.Add(multi_UndoData);
|
|
2706 |
var UndoData = new UndoData(currentControl as MarkupToPDF.Common.CommentUserInfo);
|
|
2707 |
UndoDataGroup.MarkupDataColl.Add(UndoData); |
|
2709 | 2708 |
ViewerDataModel.Instance.UndoDataList.Add(UndoDataGroup); |
2710 | 2709 |
|
2711 | 2710 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl as MarkupToPDF.Common.CommentUserInfo); |
... | ... | |
6083 | 6082 |
|
6084 | 6083 |
#endregion 캡쳐 기능 |
6085 | 6084 |
|
6086 |
public UndoData Control_Style(CommentUserInfo control) |
|
6087 |
{ |
|
6088 |
multi_UndoData = new UndoData(); |
|
6089 |
|
|
6090 |
multi_UndoData.Markup = control; |
|
6091 |
|
|
6092 |
if (control is IShapeControl) |
|
6093 |
{ |
|
6094 |
multi_UndoData.paint = (control as IShapeControl).Paint; |
|
6095 |
} |
|
6096 |
if (control is IDashControl) |
|
6097 |
{ |
|
6098 |
multi_UndoData.DashSize = (control as IDashControl).DashSize; |
|
6099 |
} |
|
6100 |
if (control is IPath) |
|
6101 |
{ |
|
6102 |
multi_UndoData.LineSize = (control as IPath).LineSize; |
|
6103 |
} |
|
6104 |
if ((control as UIElement) != null) |
|
6105 |
{ |
|
6106 |
multi_UndoData.Opacity = (control as UIElement).Opacity; |
|
6107 |
} |
|
6108 |
|
|
6109 |
return multi_UndoData; |
|
6110 |
} |
|
6111 |
|
|
6112 | 6085 |
private async void Comment_Move(object sender, MouseButtonEventArgs e) |
6113 | 6086 |
{ |
6114 | 6087 |
string Select_ID = (((e.Source as Telerik.Windows.Controls.RadButton).DataContext) as IKCOM.MarkupInfoItem).MarkupInfoID; |
내보내기 Unified diff