Beispiel #1
0
        public void ShowCodeText()
        {
            var Nodes = Form1.form_Database.GetTreeView1Selected();

            if (Nodes.Count == 0)
            {
                var selNode = Form1.form_Database.treeView1.SelectedNode;
                if (selNode == null || (((Model.TreeNodeTag)selNode.Tag).Type != Model.TreeNodeType.Table && ((Model.TreeNodeTag)selNode.Tag).Type != Model.TreeNodeType.View))
                {
                    MessageBox.Show("请选择要生成代码的表或视图!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    Form1.Instance.ShowServerList();
                    return;
                }
            }

            Form_Code_SetText fcst = new Form_Code_SetText();

            fcst.ShowDialog();
        }
        public void ShowCodeText()
        {
            var Nodes = Form1.form_Database.GetTreeView1Selected();
            if (Nodes.Count == 0)
            {
                var selNode = Form1.form_Database.treeView1.SelectedNode;
                if (selNode == null || (((Model.TreeNodeTag)selNode.Tag).Type != Model.TreeNodeType.Table && ((Model.TreeNodeTag)selNode.Tag).Type != Model.TreeNodeType.View))
                {
                    MessageBox.Show("请选择要生成代码的表或视图!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    Form1.Instance.ShowServerList();
                    return;
                }
            }

            Form_Code_SetText fcst = new Form_Code_SetText();
            fcst.ShowDialog();
        }