예제 #1
0
   public override void HandleDrop(WinForms::IDataObject dragData)
   {
      if (ControlHelpers.ShiftPressed)
         base.HandleDrop(dragData);
      else
      {
         if (!this.IsValidDropTarget(dragData))
            return;

         IEnumerable<IMaxNode> nodes = GetMaxNodesFromDragData(dragData);
         ChangeGroupCommand cmd = new ChangeGroupCommand(nodes, this.MaxNode, true);
         cmd.Execute(true);
      }
   }
예제 #2
0
 public override void Do()
 {
    this.groupHead = GroupHelpers.CreateGroupHead();
    ChangeGroupCommand changeGroupCmd = new ChangeGroupCommand(this.nodes, this.groupHead, true);
    changeGroupCmd.Execute(false);
 }