private void обзорToolStripMenuItem_Click(object sender, EventArgs e) { this.Hide(); housingPanel hp = new housingPanel(); hp.Show(); }
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("Авторизация не совершена!"); } }