Пример #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)
         {
             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);
 }