LoginForm - Add AcceptButton.
This commit is contained in:
parent
0ff210091a
commit
ab9216cbc2
|
@ -15,9 +15,10 @@ namespace AIParkingApplication
|
|||
lblLoginStatus.Text = string.Empty;
|
||||
|
||||
apiController = new ApiController(serverBaseAddress);
|
||||
this.AcceptButton = btnLogin;
|
||||
}
|
||||
|
||||
private async void btnLogin_Click(object sender, System.EventArgs e)
|
||||
private async void Login()
|
||||
{
|
||||
lblLoginStatus.Text = string.Empty;
|
||||
string username = txtUsername.Text;
|
||||
|
@ -39,6 +40,11 @@ namespace AIParkingApplication
|
|||
}
|
||||
}
|
||||
|
||||
private void btnLogin_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
Login();
|
||||
}
|
||||
|
||||
private void btnExit_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
if (DialogResult.OK == MessageBox.Show("AIParking - Bạn muốn thoát ứng dụng?", "Cảnh báo!", MessageBoxButtons.OKCancel, MessageBoxIcon.Question))
|
||||
|
|
Loading…
Reference in New Issue
Block a user