private void txtClassNm_Leave(object sender, EventArgs e) { LibTreeNode libNode = (LibTreeNode)this.treeView1.SelectedNode; if (libNode != null) { if (libNode.NodeType == NodeType.Class) { ModelDesignProject.UpdateXmlNode(libNode); } } }