Exemplo n.º 1
0
        private void btnekle_Click(object sender, EventArgs e)
        {
            SqlCommand komut = new SqlCommand("insert into Yonetici(Yoneticiad,Yoneticisifre) values(@p1,@p2)", baglan.baglanti());

            komut.Parameters.AddWithValue("@p1", txtkullanici.Text);
            komut.Parameters.AddWithValue("@p2", txtsifre.Text);
            komut.ExecuteNonQuery();
            MessageBox.Show("Kayıt Başarı ile eklendi.", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information);
            baglan.baglanti().Close();
            KullaniciEkle frmk = new KullaniciEkle();

            frmk.Show();
            this.Hide();
        }
Exemplo n.º 2
0
        private void button4_Click(object sender, EventArgs e)
        {
            KullaniciEkle frmke = new KullaniciEkle();

            frmke.Show();
        }