public Login(string username, string password) { if (InitialLoginVerification.ValidCredentials(username, password) == true) { File.WriteAllText(@"CurrentLogIn.txt", username + ':' + password + ':' + "Logged_in"); launchMainpage(); } }
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(); } }