private void tspButtonAdd_Click(object sender, System.EventArgs e)
 {
     if (AzCustomMetaDataEdit.ShowAzCustomMetaDataEdit(this) == DialogResult.OK)
     {
         AzGetCustomList();
     }
 }
 private void tspButtonEdit_Click(object sender, System.EventArgs e)
 {
     if (treeViewBusiness.SelectedNode.Level == 1)
     {
         if (AzCustomMetaDataEdit.ShowAzCustomMetaDataEdit(this, treeViewBusiness.SelectedNode.Name) == DialogResult.OK)
         {
             AzGetCustomList();
         }
     }
 }
        public static DialogResult ShowAzCustomMetaDataEdit(IWin32Window owner, string objModeName = "")
        {
            AzCustomMetaDataEdit azCustomMetaDataEdit = new AzCustomMetaDataEdit();

            if (string.IsNullOrWhiteSpace(objModeName))
            {
                azCustomMetaDataEdit.Text = "增加" + azCustomMetaDataEdit.Text;
            }
            else
            {
                azCustomMetaDataEdit.IsEdit = true;
                azCustomMetaDataEdit.Text   = "编辑" + azCustomMetaDataEdit.Text;
                azCustomMetaDataEdit.LoadData(objModeName);
            }
            azCustomMetaDataEdit.azObjModeName = objModeName;
            azCustomMetaDataEdit.textObjModeName.Focus();
            return(azCustomMetaDataEdit.ShowDialog(owner));
        }