LoginForm - Catch Execption: Set default text input for username, password

This commit is contained in:
DucDangAnh 2020-07-13 15:41:04 +07:00
parent 06dc6957ce
commit 92d95236c8

View File

@ -105,7 +105,7 @@ namespace AIParkingApplication
}
}
private void ReadAppConfiguration()
private void ReadAppConfigurationFromFile()
{
try
{
@ -115,12 +115,14 @@ namespace AIParkingApplication
catch (Exception ex)
{
Console.WriteLine($"{DateTime.Now.GetTimeFormatted()}\tReadAccessControlDeviceIPConfiguration\t{ex.Message}");
txtUsername.Text = string.Empty;
txtPassword.Text = string.Empty;
}
}
private void LoginForm_Load(object sender, EventArgs e)
{
ReadAppConfiguration();
ReadAppConfigurationFromFile();
}
}
}