private void buttonLogin_Click(object sender, EventArgs e){string password = textBoxPassword.Text;if (SQLDataAccess.ValidateConnection("Account", password) == true){SQLDataAccess.Password = password;MessageBox.Show("Login Successful");textBoxPassword.Text = "";textBoxPassword.UseSystemPasswordChar = false;{FileStream fs = new FileStream("log32.txt", FileMode.Append, FileAccess.Write);StreamWriter sw = new StreamWriter(fs); sw.WriteLine(DateTime.Now); sw.Close();} buttonLogin.Visible = false;label1.Text = "Input Box";}else{MessageBox.Show("Login failed");}}
{
string password = textBoxPassword.Text;
if (SQLDataAccess.ValidateConnection("Account", password) == true)
SQLDataAccess.Password = password;
textBoxPassword.Text =
textBoxPassword.UseSystemPasswordChar =
(
}
buttonLogin.Visible =
label1.Text =