This commit is contained in:
2022-06-22 01:16:33 +00:00
parent dbd323aeca
commit 0cba94f582
3 changed files with 9 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ namespace AyaNovaQBI
}
}
catch (Exception ex)
{
{
MessageBox.Show("Error attempting to login:\r\n" + ex.Message);
this.DialogResult = DialogResult.Cancel;
return;
@@ -80,6 +80,9 @@ AyaNovaUserType: {util.AyaNovaUserType}");
btnLogin.Enabled = btnTest.Enabled = true;
//successful login, persist server setting
Properties.Settings.Default.serverurl = edServerUrl.Text;
Properties.Settings.Default.Save();
this.DialogResult = DialogResult.OK;
this.Close();