Exemplo n.º 1
0
        private void обзорToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();

            housingPanel hp = new housingPanel();

            hp.Show();
        }
Exemplo n.º 2
0
        private void buttonLogin_Click(object sender, EventArgs e)
        {
            String loginUser = inputLogin.Text;
            String passUser  = inputPass.Text;

            User user = new User();

            bool authorized = user.Authorize(loginUser, passUser);

            if (authorized)
            {
                this.Hide();
                housingPanel ap = new housingPanel();
                ap.Show();
            }
            else
            {
                MessageBox.Show("Авторизация не совершена!");
            }
        }