Ejemplo n.º 1
0
        private void LoginClick(object sender, EventArgs e)
        {
            LoginView kullanici = new LoginView();

            kullanici.kullaniciAdi = txtKullaniciAdi.Text;
            kullanici.Sifre        = txtSifre.Text;

            if (txtSifre.Text.Length < 8)
            {
                MetroFramework.MetroMessageBox.Show(this, "Şifre 8 karakterden uzun olmalıdır.", "Şifre Hatası", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            else if (stokController.GirisYap(kullanici))
            {
                MainScreen main = new MainScreen();
                this.Hide();
                main.Show();
            }
            else
            {
                MetroFramework.MetroMessageBox.Show(this, "KullanıcıAdı veya Şifreniz yanlış!", "Böyle Bir Kullanıcı Yok", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }