private void 切断数据库连接ToolStripMenuItem_Click(object sender, EventArgs e) { database.CloseConnection(); database.DisposeConnection(); Thread.Sleep(100); database.ResetConnection(); MessageBox.Show("执行完毕"); }
private void 释放数据库连接ToolStripMenuItem_Click(object sender, EventArgs e) { database.ResetConnection(); MessageBox.Show("释放成功"); }