private void btnKullaniciEkleme_Click(object sender, EventArgs e)
        {
            string KAd, Sifre, Sonuc;
            int    Id;

            KAd   = txtKullaniciAdi.Text;
            Sifre = txtSifre.Text;
            if (chckFakulteSekreteri.Checked)
            {
                Id = 1;
            }
            else
            {
                Id = 0;
            }

            KullaniciView K = new KullaniciView()
            {
                KAd   = KAd,
                Sifre = Sifre,
                Type  = Id
            };

            Sonuc = KullaniciIslemleri.KullaniciEkle(K);
            if (Sonuc == "Yes")
            {
                MessageBox.Show("Kullanici Eklendi.");
            }
            else
            {
                MessageBox.Show(Sonuc);
            }
        }
Ejemplo n.º 2
0
        private void btnKayit_Click(object sender, EventArgs e)
        {
            string KAd, Sifre, Sonuc;
            int    Id;

            KAd   = textBox1.Text;
            Sifre = textBox2.Text;
            if (chckYon.Checked)
            {
                Id = 1;
            }
            else
            {
                Id = 0;
            }
            Sonuc = KullaniciIslemleri.KullaniciEkle(KAd, Sifre, Id);
            if (Sonuc == "Yes")
            {
                MessageBox.Show("Kayıt Tamamlandı");
            }
            else
            {
                MessageBox.Show(Sonuc);
            }
        }