Пример #1
0
        private void mnuCreateObject_Click(object sender, EventArgs e)
        {
            TreeNode          currentNode      = trvDatabase.SelectedNode;
            ITemplateDatabase templateDatabase = currentNode.Parent.Parent.Tag as ITemplateDatabase;

            if (currentNode.Parent.Text == "模板")
            {
                IObjectTemplate            template = currentNode.Tag as IObjectTemplate;
                frmQuickCreateFeatureClass frm      = new frmQuickCreateFeatureClass(_context, _plugin);
                frm.SingleTemplate = template;
                frm.ShowDialog();
            }
            if (currentNode.Parent.Text == "数据字典")
            {
            }
            if (currentNode.Parent.Text == "数据集")
            {
                IObjectDataset dataset           = currentNode.Tag as IObjectDataset;
                frmQuickCreateFeatureDataset frm = new frmQuickCreateFeatureDataset(_context, templateDatabase);
                frm.SetDataset(dataset.Name);
                frm.ShowDialog();
            }
        }
Пример #2
0
        public override void OnClick()
        {
            frmQuickCreateFeatureDataset frm = new frmQuickCreateFeatureDataset(_context, _plugin);

            frm.ShowDialog();
        }