Exemple #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
            AuthPage auth = new AuthPage();

            auth.Show();
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            //need to add pass change in DB
            this.Close();
            AuthPage auth = new AuthPage();

            auth.Show();
        }
Exemple #3
0
        private void loginBtn_Click(object sender, EventArgs e)
        {
            string user     = loginTxtbx.Text;
            string pass     = passwordTxtbx.Text;
            int    isInBase = IsInBase(user, pass);

            if (isInBase > 0)
            {
                MessageBox.Show($"Здравствуй {GetName(isInBase)}");
                AuthPage auth = new AuthPage();
                auth.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Неверный ввод!");
            }
        }