public ClassGenerator(DBConnectType ConnectType) { InitializeComponent(); da = new DataAccess(ConnectType); pt = new ProcTable(); g = new Generator(); pt.SetConnectionString(LoadServer.cn); if (TestAndLoad()) { btnGenerate.Enabled = true; } }
private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { LoadServer.cn.Database = e.Node.Text; gbOpition.Text = e.Node.Text + ":生成选项"; pt.SetConnectionString(LoadServer.cn); if (TestAndLoad()) { btnGenerate.Enabled = true; } lblMsg.Text = ""; }