LoginForm - Add AcceptButton.

This commit is contained in:
DucDangAnh 2020-07-06 15:22:14 +07:00
parent 0ff210091a
commit ab9216cbc2

View File

@ -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))