Пример #1
0
        private void loginButton_Click(object sender, EventArgs e)
        {
            this.username = userNameTextBox.Text;
            string      password = passWordTextBox.Text;
            int         Content  = (int)userTableAdapter1.checkLogin(username, password);
            LoadResults lr       = new LoadResults(this);

            if (Content == 1)
            {
                loginButton.Text = "Login succesful";

                lr.Show();
                this.Hide();
            }
            else
            {
                errorLabel.Text = "Something went wrong";
            }
        }
Пример #2
0
 public selectedItemForm(LoadResults incomingForm)
 {
     LrForm = incomingForm;
     InitializeComponent();
 }