Exemplo n.º 1
0
 public static void HandleDrop(object dropData)
 {
     if (DropHandlers.TryGetValue(dropData.GetType(), out IDropHandler handler))
     {
         handler.HandleDrop(dropData);
     }
 }
Exemplo n.º 2
0
 public static bool CanHandleDragDrop(object dragData)
 {
     if (DropHandlers.ContainsKey(dragData.GetType()))
     {
         return(true);
     }
     return(false);
 }
Exemplo n.º 3
0
 static DragDropHelpers()
 {
     // Register DropHandlers
     DropHandlers.Add(typeof(CEntityAsset <CEntity>), new CEntityDropHandler());
     DropHandlers.Add(typeof(CLevelAsset), new CLevelDropHandler());
 }