Beispiel #1
0
        private void btnSil_Click(object sender, EventArgs e)
        {
            Calisan  yeniCalisan     = new Calisan();
            Iletisim calisanIletisim = new Iletisim();
            int      seciliCalisanID = Convert.ToInt32(KullaniciGiris._girisYapanKullanici.ID);

            seciliCalisan = _calisanService.CalisanGetirById(seciliCalisanID);

            girisIslemleri = _girisIslemleriService.GirisBilgileriGetir(seciliCalisanID);

            if (seciliCalisan != null)
            {
                if (girisIslemleri.GizliSoruCevap == txtGizliSoruCevap.Text && girisIslemleri.AktifMi == true)
                {
                    DialogResult dialog = MessageBox.Show("Hesabı Silme İşlemi Geri Alınamaz. Yine de Silmek İstiyor Musunuz?", "UYARI", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
                    if (DialogResult.Yes == dialog)
                    {
                        _girisIslemleriService.HesabıSil(girisIslemleri);
                        MessageBox.Show("Hesap Silindi! Giriş Ekranına Yönlendiriliyorsunuz.");
                        KullaniciGiris kullaniciGiris = new KullaniciGiris();
                        kullaniciGiris.Show();
                        Anasayfa ana = new Anasayfa();
                        ana.Hide();
                    }
                    else
                    {
                        MessageBox.Show("İşlem İptal Edildi.");
                    }
                }
            }
        }
Beispiel #2
0
        private void btnCikisYap_Click(object sender, EventArgs e)
        {
            pnlHesapYonetimi.Visible = false;

            KullaniciGiris kullaniciGiris = new KullaniciGiris();

            kullaniciGiris.Show();
            this.Hide();
        }
Beispiel #3
0
        public AccountSettings(KullaniciGiris KullaniciGuncellenecekBilgileri1)
        {
            KullaniciGuncellenecekBilgileri = KullaniciGuncellenecekBilgileri1;
            _gizliSoru             = new GizliSoruService();
            _girisIslemleriService = new GirisIslemleriService();
            _calisanService        = new CalisanService();
            _iletisimService       = new IletisimService();


            InitializeComponent();
        }
Beispiel #4
0
        private void bGiris_Click(object sender, EventArgs e)
        {
            KullaniciGiris k = new KullaniciGiris();

            bool sonuc = k.GirisYap(tKulAdi.Text, tSifre.Text);

            if (sonuc)
            {
                MessageBox.Show("Giriş Başarılı");
            }
            else
            {
                MessageBox.Show("Giriş Başarısız!!!!!");
            }
        }
Beispiel #5
0
        protected void onayButon_Click(object sender, EventArgs e)
        {
            KullaniciGiris login = new KullaniciGiris();

            login.kullaniciGirisi(kAD.Text, kSifre.Text);
            Session["kullanici"]   = login.kulAd.ToString();
            Session["kullaniciID"] = login.id.ToString();
            if (login.kontrol > 0)
            {
                forget.Text = Session["kullaniciID"].ToString();
                Response.Redirect("Anasayfa.aspx");
            }
            else
            {
                Response.Redirect("UyeOl.aspx");
            }
        }
Beispiel #6
0
        private void btn_sifre_Click(object sender, EventArgs e)
        {
            KullaniciGiris k = new KullaniciGiris();

            bool sonuc = k.GirisYap(txt_ka.Text, txt_sifre.Text);

            if (sonuc)
            {
                this.Hide();
                UIMain.Main frm = new UIMain.Main();

                frm.WindowState = FormWindowState.Maximized;
                frm.ShowDialog();
            }
            else
            {
            }
        }