This commit is contained in:
2021-08-11 17:41:27 +00:00
parent 324ae8ac05
commit 5c0c09beb1

View File

@@ -18,7 +18,9 @@ namespace AyaNova.PlugIn.V8
private async void btnTest_Click(object sender, EventArgs e)
{
btnOk.Enabled=btnTest.Enabled = false;
var result = await util.TestUrlAsync(edServerUrl.Text);
btnOk.Enabled = btnTest.Enabled = true;
if (result == "OK")
{
MessageBox.Show("Server URL is GOOD!");
@@ -30,6 +32,7 @@ namespace AyaNova.PlugIn.V8
}
private async void btnOk_Click(object sender, EventArgs e)
{
btnOk.Enabled = btnTest.Enabled = false;
if (!util.Initialized)
{
var result = await util.TestUrlAsync(edServerUrl.Text);
@@ -45,6 +48,7 @@ namespace AyaNova.PlugIn.V8
MessageBox.Show("AyaNova 8 SuperUser account login failed");
return;
}
btnOk.Enabled = btnTest.Enabled = true;
this.DialogResult = DialogResult.OK;
this.Close();