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); } }
public override void Do() { this.groupHead = GroupHelpers.CreateGroupHead(); ChangeGroupCommand changeGroupCmd = new ChangeGroupCommand(this.nodes, this.groupHead, true); changeGroupCmd.Execute(false); }