ANHDBI.frmLogin.frmLogin C# (CSharp) Метод

frmLogin() публичный Метод

Initializes a new instance of the T:frmLogin class.
public frmLogin ( DatabaseTypes DatabaseType ) : System
DatabaseType DatabaseTypes Type of the database.
Результат System
        public frmLogin(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;
            }
        }