Exemplo n.º 1
0
 private void simpleButton2_Click(object sender, EventArgs e)
 {
     if (rdbUye.Checked == true)
     {
         Uye newUye = new Uye();
         newUye.Ad          = txtAd.Text;
         newUye.Soyad       = txtSoyad.Text;
         newUye.Telefon     = mskTelefon.Text;
         newUye.Mail        = txtMail.Text;
         newUye.KullaniciID = txtKullaniciID.Text;
         newUye.Sifre       = txtSifre.Text;
         newUye.KisiEkle();
         MessageBox.Show("Yeni Üye Eklendi...", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information);
         this.Close();
     }
     else if (rdbYetkili.Checked == true)
     {
         Yetkili newYetkili = new Yetkili();
         newYetkili.Yetki       = txtYetki.Text;
         newYetkili.Ad          = txtAd.Text;
         newYetkili.Soyad       = txtSoyad.Text;
         newYetkili.Telefon     = mskTelefon.Text;
         newYetkili.Mail        = txtMail.Text;
         newYetkili.KullaniciID = txtKullaniciID.Text;
         newYetkili.Sifre       = txtSifre.Text;
         newYetkili.KisiEkle();
         MessageBox.Show("Yeni Yetkili Eklendi...", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information);
         this.Close();
     }
     else
     {
         MessageBox.Show("Kayıt türü seçiniz", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Exemplo n.º 2
0
        void YetkiliBilgiGuncelle()
        {
            Yetkili yetkiliBilgi = new Yetkili(kullanici);

            yetkiliBilgi.Mail      = txtYMail.Text;
            yetkiliBilgi.Sifre     = txtYSifre.Text;
            yetkiliBilgi.Telefon   = mskYTelefon.Text;
            yetkiliBilgi.YetkiliNo = Convert.ToInt32(txtYetkiliNo.Text);
            yetkiliBilgi.KisiBilgiGuncelle();
            MessageBox.Show("Bilgileriniz Güncellendi...", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
Exemplo n.º 3
0
        void KelimeEkle()
        {
            Yetkili KelimeEkle = new Yetkili(kullanici);
            Kelime  word       = new Kelime();

            word.Turkce      = txtKelime.Text;
            word.Ingilizce   = txtIngilizce.Text;
            word.Turu        = txtTuru.Text;
            word.OrnCumle    = txtOrnCumle.Text;
            word.TurkceCumle = txtTurkceCumle.Text;
            word.Resim       = txtResim.Text;
            KelimeEkle.KelimeEkle(word);
        }
Exemplo n.º 4
0
        void KelimeGuncelle()
        {
            Yetkili KelimeGuncelle = new Yetkili(kullanici);
            Kelime  word           = new Kelime();

            word.KelimeId    = Convert.ToInt32(txtUpKelimeID.Text);
            word.Turkce      = txtUpKelime.Text;
            word.Ingilizce   = txtUpIngilizce.Text;
            word.Turu        = txtUpTur.Text;
            word.OrnCumle    = txtUpOrnCumle.Text;
            word.TurkceCumle = txtUpTurkCumle.Text;
            word.Resim       = txtUpResim.Text;
            KelimeGuncelle.KelimeGuncelle(word);
        }
Exemplo n.º 5
0
        void YetkiliBilgiGetir(string kullaniciAdi)
        {
            Yetkili yetkiliBilgi = new Yetkili(kullaniciAdi);

            yetkiliBilgi.KisiBilgiGetir(kullaniciAdi);
            txtYAd.Text       = yetkiliBilgi.Ad;
            txtYSoyad.Text    = yetkiliBilgi.Soyad;
            txtYMail.Text     = yetkiliBilgi.Mail;
            txtYSifre.Text    = yetkiliBilgi.Sifre;
            mskYTelefon.Text  = yetkiliBilgi.Telefon;
            lblYID.Text       = yetkiliBilgi.KullaniciID;
            txtYetkiliNo.Text = yetkiliBilgi.YetkiliNo.ToString();
            btnYetkili.Text   = "Sayın " + yetkiliBilgi.Yetki + " , " + yetkiliBilgi.Ad + " " + yetkiliBilgi.Soyad;
        }