Esempio n. 1
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            detalization f2 = new detalization();

            f2.Show();
            this.Hide();
        }
Esempio n. 2
0
        private void btn_auth_Click(object sender, EventArgs e)
        {
            var dp = new data_provider();

            if (!(txt_login.Text == "" || txt_pass.Text == ""))
            {
                byte[] cp = dp.CalcHash(txt_pass.Text);
                if (dp.authorization(txt_login.Text, cp))
                {
                    detalization f2 = new detalization();
                    f2.Show();
                    this.Hide();
                }
                else
                {
                    MessageBox.Show("Невалидный login or pass");
                }
            }
            else
            {
                MessageBox.Show("Не оставляйте поля пустыми!");
            }
        }