예제 #1
0
 public Login(string username, string password)
 {
     if (InitialLoginVerification.ValidCredentials(username, password) == true)
     {
         File.WriteAllText(@"CurrentLogIn.txt", username + ':' + password + ':' + "Logged_in");
         launchMainpage();
     }
 }
예제 #2
0
        private void login_button_Click(object sender, EventArgs e)
        {
            if (InitialLoginVerification.ValidCredentials(Username_entry.Text, Password_entry.Text) == true)
            {
                File.WriteAllText(@"CurrentLogIn.txt", Username_entry.Text + ':' + Password_entry.Text + ':' + "Logged_in");

                launchMainpage();
            }
        }