LoginForm - Catch Execption: Set default text input for username, password
This commit is contained in:
parent
06dc6957ce
commit
92d95236c8
|
@ -105,7 +105,7 @@ namespace AIParkingApplication
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ReadAppConfiguration()
|
private void ReadAppConfigurationFromFile()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -115,12 +115,14 @@ namespace AIParkingApplication
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Console.WriteLine($"{DateTime.Now.GetTimeFormatted()}\tReadAccessControlDeviceIPConfiguration\t{ex.Message}");
|
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)
|
private void LoginForm_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
ReadAppConfiguration();
|
ReadAppConfigurationFromFile();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user