mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
add support for external credential provider in remote desktop gateway rename TSS to DSS fix tests and property naming issues
36 lines
868 B
C#
36 lines
868 B
C#
namespace ExternalConnectors.DSS
|
|
{
|
|
public partial class SSConnectionForm : Form
|
|
{
|
|
public SSConnectionForm()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void SSConnectionForm_Activated(object sender, EventArgs e)
|
|
{
|
|
SetVisibility();
|
|
if (cbUseSSO.Checked)
|
|
btnOK.Focus();
|
|
else
|
|
{
|
|
if (tbPassword.Text.Length == 0)
|
|
tbPassword.Focus();
|
|
else
|
|
tbOTP.Focus();
|
|
}
|
|
}
|
|
|
|
private void cbUseSSO_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
SetVisibility();
|
|
}
|
|
private void SetVisibility()
|
|
{
|
|
bool ch = cbUseSSO.Checked;
|
|
tbPassword.Enabled = !ch;
|
|
tbUsername.Enabled = !ch;
|
|
}
|
|
}
|
|
}
|