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; using System.Data.SqlClient; namespace YurevichIS31_Stroymaterialy { public partial class auth : Form { public auth() { InitializeComponent(); } private void infbutton_Click(object sender, EventArgs e) { MessageBox.Show("Приложение разработано для магазина строительных материалов в Сыктывкаре\nВерсия приложения 1.0"); } private void authbutton_Click(object sender, EventArgs e) { if (logintextbox.Text == "admin" && passwordtextbox.Text == "123") { admform form = new admform(); form.Show(); this.Hide(); } else { MessageBox.Show("Логин или пароль введен неверно"); } } private void exitbutton_Click(object sender, EventArgs e) { this.Close(); } } }