Пример #1
0
        private void pbxBack_Click(object sender, EventArgs e)
        {
            HomeForm hf = new HomeForm(aux);

            hf.Show();
            this.Close();
        }
Пример #2
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            try
            {
                GetData();

                if (CheckLogin(password, login))
                {
                    HomeForm mainForm = new HomeForm(user);
                    mainForm.Show();
                    this.Hide();
                }
                else
                {
                    CleanData();
                    MessageBox.Show("Usuário ou senha incorretos!");
                }
            }
            catch (Exception ex)
            {
                CleanData();
                MessageBox.Show(ex.Message);
            }
        }