예제 #1
0
파일: Form1.cs 프로젝트: omer-khvci/Udemy
        private void btn_giris_Click(object sender, EventArgs e)
        {
            int ReturnValues = bll.SistemKontrol(txtKullaniciAdi.Text, txtSifre.Text);

            if (ReturnValues >= 0)
            {
                AnaForm af = new AnaForm();
                af.Show();
            }
            else
            {
                MessageBox.Show("Hatalı Kullanıcı adı ve şifre");
            }
        }
예제 #2
0
        private void btn_giris_Click(object sender, EventArgs e)
        {
            int returnValues = bll.SistemKontrol(txt_kullanici_adi.Text, txt_kullanici_sifre.Text);

            if (returnValues > 0)
            {
                AnaForm af = new AnaForm();
                af.Show();
            }
            else
            {
                MessageBox.Show("Hatalı Kullanıcı Girişi", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
예제 #3
0
        private void btnGiris_Click(object sender, EventArgs e)
        {
            int ReturnValues = bll.SistemKontrol(txtKullaniciAdi.Text, txtSifre.Text);

            if (ReturnValues > 0)
            {
                AnaForm AF = new AnaForm();
                AF.Show();
            }
            else
            {
                MessageBox.Show("Hatalı Kullanıcı", "HATA", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
예제 #4
0
        private void btn_Sistem_Giris_Click(object sender, EventArgs e)
        {
            int gelendeger = bll.SistemKontrol(txt_kullaniciad.Text, txt_KullanıcıSifre.Text);

            if (gelendeger > 0)
            {
                AnaForm af = new AnaForm();
                af.Show();
            }

            else
            {
                MessageBox.Show("Hatalı kullanıcı adı veya şifre girişi", "uyarı", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }