public static void SelectChildNodes(TreeNode contextTn, IEnumerable<IMaxNode> contextNodes)
   {
      Throw.IfNull(contextNodes, "contextNodes");

      IEnumerable<IMaxNode> nodes = GetChildNodes(contextNodes);

      SelectCommand cmd = new SelectCommand(nodes);
      cmd.Execute();
      Viewports.Redraw();
   }
Beispiel #2
0
   protected virtual void tree_SelectionChanged(object sender, SelectionChangedEventArgs e)
   {
      this.UnregisterSystemNotification(proc_SelectionsetChanged, SystemNotificationCode.SelectionsetChanged);

      IEnumerable<IMaxNode> selNodes = TreeMode.GetMaxNodes(e.Nodes);
      SelectCommand cmd = new SelectCommand(selNodes);
      cmd.Execute();
      Viewports.Redraw();

      this.RegisterSystemNotification(proc_SelectionsetChanged, SystemNotificationCode.SelectionsetChanged);
   }