public frmMyLogin(DatabaseTypes DatabaseType)
{
InitializeComponent();
oDatabaseType = DatabaseType;
//Only display check box if type is Microsoft Sql Server
if (oDatabaseType == DatabaseTypes.SqlServer)
{
optWindowsAuth.Visible = true;
txtPort.Text = "";
}
else
{
optWindowsAuth.Visible = false;
if (txtPort.Text == "")
txtPort.Text = "3306";
}
if (optWindowsAuth.Checked == true)
{
txtUsername.Enabled = false;
txtPassword.Enabled = false;
}
else
{
txtUsername.Enabled = true;
txtPassword.Enabled = true;
}
}