daily pastebin goal
4%
SHARE
TWEET

Dylan's code

a guest Oct 13th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.  
  3.             string currentUserName = Convert.ToString(txtLogUser);
  4.             string currentPassword = Convert.ToString(txtLogPas);
  5.  
  6.             customerTableTableAdapter1.checkAccess(databaseDataSet1.customerTable, txtLogUser.Text, txtLogPas.Text);
  7.             int resultCount = databaseDataSet1.customerTable.Rows.Count;
  8.            
  9.             if (resultCount == 1)
  10.             {
  11.              
  12.                 {
  13.                     MessageBox.Show("You have succesfully logged in.");
  14.                     Variables.loggedIn = true;
  15.                     product frm = new product();
  16.                     frm.Show();
  17.                 }
  18.             }
  19.             else
  20.             {
  21.                 MessageBox.Show("The username and/or password entered is invalid, please try again.");
  22.             }
  23.         }
RAW Paste Data
Top