Beispiel #1
0
        private void pcrebxCikis_Click(object sender, EventArgs e)
        {
            frm_OgretmenMenusu frmMenu = new frm_OgretmenMenusu();

            frmMenu.Show();
            this.Close();
        }
Beispiel #2
0
        private void bnf_btnGirisYap_Click(object sender, EventArgs e)
        {
            if (mtrbtnOgrenci.Checked == true)
            {
                ogrGiris = new OgrencilerDB();
                ogr      = ogrGiris.OgrenciGetir(bnf_txtKullaniciAd.Text, bnf_txtKullaniciSifre.Text);

                if (ogr != null && ogr.ogrKullaniciAdi == bnf_txtKullaniciAd.Text && ogr.ogrSifre == bnf_txtKullaniciSifre.Text)
                {
                    GirisYapanBilgileri.ogrninKulAdi = bnf_txtKullaniciAd.Text;
                    GirisYapanBilgileri.ogrninNosu   = ogr.ogrNo.ToString();
                    GirisYapanBilgileri.sınavId      = ogr.sinavId;
                    GirisYapanBilgileri.ogrAd        = ogr.ogrAdi;
                    GirisYapanBilgileri.ogrSoyad     = ogr.ogrSoyad;
                    frm_OgrenciMenu frm = new frm_OgrenciMenu();
                    frm.Show();
                    this.Hide();
                }

                else
                {
                    MessageBox.Show("Hatali Giris");
                }
            }

            else if (mtrdibtnOgretmen.Checked == true)
            {
                ogrtmnGiris = new OgretmenDB();
                ogrtm       = ogrtmnGiris.OgretmenGetir(bnf_txtKullaniciAd.Text, bnf_txtKullaniciSifre.Text);
                if (ogrtm != null && ogrtm.ogrtmnKulAdi == bnf_txtKullaniciAd.Text && ogrtm.ogrtmnSifre == bnf_txtKullaniciSifre.Text)
                {
                    frm_OgretmenMenusu frmMenu = new frm_OgretmenMenusu();
                    frmMenu.Show();
                    this.Hide();
                }
                else
                {
                    MessageBox.Show("Hatali Giris");
                }
            }
            else
            {
                MessageBox.Show("Lütfen Seçim Yapınız !!");
            }
        }