public ModifySelectionSetCommand( SelectionSetWrapper selSet
                                      , IEnumerable<IMaxNode> nodes)
      {
         Throw.IfNull(nodes, "nodes");
         Throw.IfNull(selSet, "selSet");

         this.selSet = selSet;
         this.nodes = nodes.ToList();
      }
Example #2
0
   protected virtual void NamedSelSetCreated(IntPtr param, IntPtr info)
   {
      IntPtr callParam = (IntPtr)SystemNotifications.GetCallParam(info);
      String selSetName = Marshal.PtrToStringUni(callParam);

      if (this.modifyingSelSetName == null || this.modifyingSelSetName != selSetName)
      {
         SelectionSetWrapper wrapper = new SelectionSetWrapper(selSetName);
         TreeNode tn = this.AddNode(wrapper, this.Tree.Nodes);
         this.Tree.AddToSortQueue(tn);
         this.Tree.AddToSortQueue(tn.Nodes);
         this.Tree.StartTimedSort(true);
      }
   }
 public SelectionSetDragDropHandler(SelectionSetWrapper node) : base(node) { }