private void btnBaglantiTest_Click(object sender, EventArgs e) { BaglantiCumleOlustur(); if (ConnectionStringInfo.Check(connectionStringBuilder.ConnectionString)) { MessageBox.Show("Bağlantı Başarılı."); } else { MessageBox.Show("Bağlantı Başarısız."); } }
private void btnKaydet_Click(object sender, EventArgs e) { BaglantiCumleOlustur(); if (ConnectionStringInfo.Check(connectionStringBuilder.ConnectionString)) { connectionStringBuilder.InitialCatalog = "IsbaRestaurant"; ConnectionStringInfo.Set(connectionStringBuilder.ConnectionString); Kaydedildi = true; Close(); } else { MessageBox.Show("Bağlantı Başarısız."); } }