Пример #1
0
        private void cmsAddMetaData_Click(object sender, EventArgs e)
        {
            DlgEditMetaData dlg = new DlgEditMetaData();

            if (DialogResult.OK == dlg.ShowDialog())
            {
                BusinessServcie.AddMetaData(dlg.MetaDataName, dlg.MetaDataDescription);
                RefreshMetaDataTree();
            }
        }
Пример #2
0
        private void cmsEditMetaData_Click(object sender, EventArgs e)
        {
            TreeListNode currNode = treeMetaData.FocusedNode;
            SYS_METADATA bData    = currNode.Tag as SYS_METADATA;

            DlgEditMetaData dlg = new DlgEditMetaData();

            dlg.MetaDataId          = bData.ID;
            dlg.MetaDataName        = bData.NAME;
            dlg.MetaDataDescription = bData.DESCRIPTION;

            if (DialogResult.OK == dlg.ShowDialog())
            {
                BusinessServcie.EditMetaData(bData.ID, dlg.MetaDataName, dlg.MetaDataDescription);
                RefreshMetaDataTree();
            }
        }