private void OKBtn_Click(object sender, EventArgs e) { SdsiteXmlDocument doc = Service.Sdsite.CurrentDocument; doc.CopyTmpltToOtherType(copyEle.Id, ((BaseFolderElementNode)m_tree.CurrentNode).Element.Id, TranTmpltType, nameTextBox.Text); this.DialogResult = DialogResult.OK; Close(); }