Ejemplo n.º 1
0
 protected void OnAfterNodeTextEdit(AfterNodeTextEditEventArgs e)
 {
    if (this.AfterNodeTextEdit != null)
       this.AfterNodeTextEdit(this, e);
 }
Ejemplo n.º 2
0
   protected virtual void tree_AfterNodeTextEdit(object sender, AfterNodeTextEditEventArgs e)
   {
      IMaxNode node = TreeMode.GetMaxNode(e.TreeNode);
      if (node == null)
         return;

      if (e.NewText != e.OldText)
      {
         RenameCommand cmd = new RenameCommand(new List<IMaxNode>(1) { node }, e.NewText);
         cmd.Execute(false);
      }

      //Note: setting treenode text to displayname and sorting are
      //      handled by nodenamechanged callback.

      MaxInterfaces.Global.EnableAccelerators();
   }