Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- string currentUserName = Convert.ToString(txtLogUser);
- string currentPassword = Convert.ToString(txtLogPas);
- customerTableTableAdapter1.checkAccess(databaseDataSet1.customerTable, txtLogUser.Text, txtLogPas.Text);
- int resultCount = databaseDataSet1.customerTable.Rows.Count;
- if (resultCount == 1)
- {
- {
- MessageBox.Show("You have succesfully logged in.");
- Variables.loggedIn = true;
- product frm = new product();
- frm.Show();
- }
- }
- else
- {
- MessageBox.Show("The username and/or password entered is invalid, please try again.");
- }
- }
Add Comment
Please, Sign In to add comment