public void ChangeName(string NewName) { this.Name = NewName; if (this.TreeNode != null) { this.TreeNode.Text = NewName; } }