This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user