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

@@ -145,5 +145,8 @@
<ItemGroup>
<None Include="Resources\pass.png" />
</ItemGroup>
<ItemGroup>
<Content Include="devinfo.txt" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

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();

2
AyaNovaQBI/devinfo.txt Normal file
View File

@@ -0,0 +1,2 @@
TODO:
Test persisted form settings for server url