Ejemplo n.º 1
0
 protected override void OnMouseDown(MouseEventArgs e)
 {
     Sce.Atf.DragDropExtender extender = new Sce.Atf.DragDropExtender(this);
     {
         HitRecord hit = Pick(e.Location);
         if (hit.Node != null && hit.Node.Tag != null)
         {
             extender.DoDragDrop(hit.Node, DragDropEffects.All, null, e.Location);
         }
     }
     base.OnMouseDown(e);
 }
Ejemplo n.º 2
0
 protected override void OnMouseDown(MouseEventArgs e)
 {
     Sce.Atf.DragDropExtender extender = new Sce.Atf.DragDropExtender(this);
     {
         HitRecord hit = Pick(e.Location);
         if (hit.Node != null && hit.Node.Tag != null)
         {
             Translators.HierarchyTranslator trans = Translators.HierarchyTranslator.GetTranslator(hit.Node.Tag.GetType());
             if (trans != null && trans.CanDrag())
             {
                 extender.DoDragDrop(hit.Node, DragDropEffects.All, null, e.Location);
             }
         }
     }
     base.OnMouseDown(e);
 }