public INodeDragDropHandler(INodeWrapper node) : base(node) { }
Example #2
0
   /// <summary>
   /// Opens or closes a group head.
   /// </summary>
   /// <param name="groupHead">The group head node to open or close.</param>
   public static void OpenCloseGroup(INodeWrapper groupHead, Boolean open)
   {
      if (groupHead == null)
         return;

      if (groupHead.INode.IsGroupHead)
         groupHead.INode.SetGroupHeadOpen(open);

      foreach (IMaxNode child in groupHead.ChildNodes)
      {
         INodeWrapper inodeChild = child as INodeWrapper;
         if (inodeChild != null && inodeChild.INode.IsGroupMember)
         {
            inodeChild.INode.SetGroupMemberOpen(open);
            OpenCloseGroup(inodeChild, open);
         }
      }
   }
 public override void Do()
 {
    this.groupHead = GroupHelpers.CreateGroupHead();
    ChangeGroupCommand changeGroupCmd = new ChangeGroupCommand(this.nodes, this.groupHead, true);
    changeGroupCmd.Execute(false);
 }