private void button1_Click(object sender, EventArgs e) { string kadi = textBox1.Text.ToString(); string sifre = textBox2.Text.ToString(); string adsoyad = textBox3.Text.ToString(); string yetki = comboBox1.SelectedItem.ToString(); veritabani vt1 = new veritabani(); vt1.baglan(); vt1.k_Ekle(kadi, sifre, adsoyad, yetki); vt1.baglanti_Kes(); MessageBox.Show("Kullanıcı Eklendi!", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information); textBox1.Clear(); textBox2.Clear(); textBox3.Clear(); }