コード例 #1
0
        public void DapperLoginKontrol()
        {
            int  id      = bl.LoginKontrol(txtKullanici.Text, txtSifre.Text);
            bool kontrol = EmailKontrol(txtKullanici.Text);

            if (id > 0)
            {
                MessageBox.Show("Giriş Başarılı");
                this.Hide();
                AnaEkran anaEkran = new AnaEkran(txtKullanici.Text, id);
                anaEkran.ShowDialog();
                this.Close();
            }
            else if (!kontrol)
            {
                MessageBox.Show("Email düzgün biçimde değil");
            }
            else if (id == -2)
            {
                MessageBox.Show("Böyle Bir Kullanici Şu Anda Online. Çıkış Yapmadan Giremezsin");
            }


            else
            {
                MessageBox.Show("Giriş Başarısız");
            }
        }
コード例 #2
0
        private void btnGiris_Click(object sender, EventArgs e)
        {
            int id = bl.LoginKontrol(txtKullanici.Text, txtSifre.Text);

            if (id > 0)
            {
                MessageBox.Show("Giriş Başarılı");
                this.Hide();
                AnaEkran anaEkran = new AnaEkran(txtKullanici.Text, id);
                anaEkran.ShowDialog();
                this.Close();
            }
            else
            {
                MessageBox.Show("Giriş Başarısız");
            }
        }