Index: Core/Common/src/Core.Common.Controls.TreeView/Core.Common.Controls.TreeView.csproj
===================================================================
diff -u -rd7da4fd9051547085f0cbbec790eda9cb8ca7f14 -rcc570ccd4f17971ce651ead28207aae3399919d1
--- Core/Common/src/Core.Common.Controls.TreeView/Core.Common.Controls.TreeView.csproj (.../Core.Common.Controls.TreeView.csproj) (revision d7da4fd9051547085f0cbbec790eda9cb8ca7f14)
+++ Core/Common/src/Core.Common.Controls.TreeView/Core.Common.Controls.TreeView.csproj (.../Core.Common.Controls.TreeView.csproj) (revision cc570ccd4f17971ce651ead28207aae3399919d1)
@@ -62,7 +62,6 @@
-
Index: Core/Common/src/Core.Common.Controls.TreeView/TreeView.cs
===================================================================
diff -u -r757ac958da1c3c60d1cacca9f515042182c296c1 -rcc570ccd4f17971ce651ead28207aae3399919d1
--- Core/Common/src/Core.Common.Controls.TreeView/TreeView.cs (.../TreeView.cs) (revision 757ac958da1c3c60d1cacca9f515042182c296c1)
+++ Core/Common/src/Core.Common.Controls.TreeView/TreeView.cs (.../TreeView.cs) (revision cc570ccd4f17971ce651ead28207aae3399919d1)
@@ -803,7 +803,7 @@
DragOperations dragOperation = presenter.CanDrag(sourceNode.Tag);
- DragDropEffects effects = WindowsFormsHelper.ToDragDropEffects(dragOperation);
+ DragDropEffects effects = ToDragDropEffects(dragOperation);
if (effects == DragDropEffects.None)
{
@@ -856,9 +856,8 @@
}
ITreeNodePresenter presenter = GetTreeViewNodePresenter(nodeDropTarget.Tag, nodeDropTarget);
- DragOperations allowedOperations = presenter.CanDrop(nodeDragging.Tag, nodeDragging, nodeDropTarget,
- WindowsFormsHelper.ToDragOperation(e.AllowedEffect));
- e.Effect = WindowsFormsHelper.ToDragDropEffects(allowedOperations);
+ DragOperations allowedOperations = presenter.CanDrop(nodeDragging.Tag, nodeDragging, nodeDropTarget, ToDragOperation(e.AllowedEffect));
+ e.Effect = ToDragDropEffects(allowedOperations);
if (PlaceholderLocation.None == placeholderLocation)
{
@@ -1027,7 +1026,7 @@
try
{
- controller.OnDragDrop(nodeDragging, parentNode, nodeDropTarget, WindowsFormsHelper.ToDragOperation(e.Effect), dropAtLocation);
+ controller.OnDragDrop(nodeDragging, parentNode, nodeDropTarget, ToDragOperation(e.Effect), dropAtLocation);
}
catch (Exception ex)
{
@@ -1103,6 +1102,16 @@
public static extern IntPtr SendMessage(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam);
}
+ private DragDropEffects ToDragDropEffects(DragOperations operation)
+ {
+ return (DragDropEffects)Enum.Parse(typeof(DragDropEffects), operation.ToString());
+ }
+
+ private DragOperations ToDragOperation(DragDropEffects dragDropEffects)
+ {
+ return (DragOperations)Enum.Parse(typeof(DragOperations), dragDropEffects.ToString());
+ }
+
///
/// Event arguments to be used in the event that data has been deleted from a .
///
Fisheye: Tag cc570ccd4f17971ce651ead28207aae3399919d1 refers to a dead (removed) revision in file `Core/Common/src/Core.Common.Controls.TreeView/WindowsFormsHelper.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Core/Common/test/Core.Common.Controls.TreeView.Test/Core.Common.Controls.TreeView.Test.csproj
===================================================================
diff -u -r00c8bc7fed580b4a9820a7d85b3b6d2346599f65 -rcc570ccd4f17971ce651ead28207aae3399919d1
--- Core/Common/test/Core.Common.Controls.TreeView.Test/Core.Common.Controls.TreeView.Test.csproj (.../Core.Common.Controls.TreeView.Test.csproj) (revision 00c8bc7fed580b4a9820a7d85b3b6d2346599f65)
+++ Core/Common/test/Core.Common.Controls.TreeView.Test/Core.Common.Controls.TreeView.Test.csproj (.../Core.Common.Controls.TreeView.Test.csproj) (revision cc570ccd4f17971ce651ead28207aae3399919d1)
@@ -68,7 +68,6 @@
-
Fisheye: Tag cc570ccd4f17971ce651ead28207aae3399919d1 refers to a dead (removed) revision in file `Core/Common/test/Core.Common.Controls.TreeView.Test/WindowsFormsHelperTests.cs'.
Fisheye: No comparison available. Pass `N' to diff?