aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/DragDropEventArgs.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-18 23:26:23 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-18 23:26:23 +0100
commit0e44a661c488b012b9fc0eb56fec23ac8786436c (patch)
treeb8d815c971bb47254c9973e15b87aecb100144c2 /src/DragDropEventArgs.cs
parentac3e60a3c49a2a1175564fbc994d3aed47c6bfb4 (diff)
drag and drop operations
Diffstat (limited to 'src/DragDropEventArgs.cs')
-rw-r--r--src/DragDropEventArgs.cs55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/DragDropEventArgs.cs b/src/DragDropEventArgs.cs
new file mode 100644
index 00000000..428a7363
--- /dev/null
+++ b/src/DragDropEventArgs.cs
@@ -0,0 +1,55 @@
+//
+// LayoutingEventArgs.cs
+//
+// Author:
+// Jean-Philippe Bruyère <jp.bruyere@hotmail.com>
+//
+// Copyright (c) 2013-2017 Jean-Philippe Bruyère
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using System;
+
+namespace Crow
+{
+ public class DragDropEventArgs: EventArgs
+ {
+ /// <summary>
+ /// Source of the drag and drop operation
+ /// </summary>
+ public GraphicObject DragSource;
+ /// <summary>
+ /// Target of the drag and drop operation
+ /// </summary>
+ public GraphicObject DropTarget;
+
+ //public DragDropEventArgs (GraphicObject source, GraphicObject target = null) : base()
+ public DragDropEventArgs (GraphicObject source = null, GraphicObject target = null) : base()
+ {
+ DragSource = source;
+ DropTarget = target;
+ }
+
+ public override string ToString ()
+ {
+ return string.Format ("{0} => {1}", DragSource,DropTarget);
+ }
+ }
+}
+