lt.Yes) { sqlconnstr=""; DisposalConduct config = new DisposalConduct(); config.ShowDialog(); _connection=GetSqlConnection(); } else { MessageBox.Show("建立数据库连接失败,程序不能继续运行!","错误",MessageBoxButtons.OK,MessageBoxIcon.Stop); Application.ExitThread(); Application.Exit(); } } else { MessageBox.Show(SE.Message,"提示信息",MessageBoxButtons.OK,MessageBoxIcon.Information); _connection.Close(); } } return _connection; } } /// /// 数据配置 /// public class DataCatena : IDisposable { private SqlConnection _connection; /// /// 数据配置 /// public页码:[1] [2] [3] [4] [5] [6] [7] [8] [9] 第3页、共9页 |