public DB()
{
try
{
// sql bağlantısı yapılıyor
conn = new SqlConnection("Data Source=" + dataSource + ";Initial Catalog =" + dbName + ";User Id=" + userName+";integrated security=true");
if (conn.State == ConnectionState.Closed)
{
conn.Open();
}
}
catch (Exception ex)
{
//MessageBox.Show("Bağlantı Hatası : " + ex);
}
}