using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Brovi11 { public partial class Password : Form { public Password() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { if (textBox1.Text == "0000") { FormaAdmin f1 = new FormaAdmin(); f1.Show(); this.Hide(); MessageBox.Show("Вы успешно вошли!"); } else { MessageBox.Show("Пароль не верный!"); } } } }