Пример #1
0
 void KullaniciKayit()
 {
     if (nesne.KullaniciKontrol(txtkullaniciadi.Text) == true)
     {
         nesne.KullaniciKayit(txtkullaniciadi.Text, txtsifre.Text, txtadsoyad.Text, cmbyetki.Text);
         MessageBox.Show("Kayıt tamamlanmıştır.", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information);
         this.Hide();
     }
     else
     {
         MessageBox.Show("Kullanıcı adı daha önceden alınmıştır.", "Hata", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         txtkullaniciadi.Text = "";
     }
 }