This commit is contained in:
2022-07-22 18:44:03 +00:00
parent c9799d26e6
commit 07becaee80
9 changed files with 198 additions and 93 deletions

View File

@@ -28,8 +28,7 @@ namespace AyaNovaQBI
#endif
if (!string.IsNullOrWhiteSpace(edUserName.Text))
edPassword.Focus();
}
private async void btnTest_Click(object sender, EventArgs e)
@@ -127,6 +126,25 @@ namespace AyaNovaQBI
return true;
}
private void auth_Shown(object sender, EventArgs e)
{
if (string.IsNullOrWhiteSpace(edServerUrl.Text))
edServerUrl.Focus();
else if (string.IsNullOrWhiteSpace(edUserName.Text))
edUserName.Focus();
else if (!string.IsNullOrWhiteSpace(edUserName.Text))
edPassword.Focus();
}
private void iconReveal_MouseEnter(object sender, EventArgs e)
{
edPassword.UseSystemPasswordChar = false;
}
private void iconReveal_MouseLeave(object sender, EventArgs e)
{
edPassword.UseSystemPasswordChar = true;
}
}
}