1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- 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();
- }
- }
- }
|