This commit is contained in:
@@ -28,14 +28,24 @@ namespace AyaNova.PlugIn.V8
|
||||
MessageBox.Show("Server could not be reached at that URL\n" + result);
|
||||
}
|
||||
}
|
||||
private void btnOk_Click(object sender, EventArgs e)
|
||||
private async void btnOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
var res = await util.AuthenticateAsync(edUserName.Text,edPassword.Text);
|
||||
if (!res)
|
||||
{
|
||||
MessageBox.Show("Login failed");
|
||||
return;
|
||||
}
|
||||
|
||||
this.DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
|
||||
}
|
||||
|
||||
private void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void Auth_Load(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user