public frm_DbSettings() { _dbConnectionSettings = new Controllers.CLS_dbSettings(); // TODO: remove the instant (astract class) InitializeComponent(); string[] dbConnectionInfo = _dbConnectionSettings.getDBserverInfo(); txtServerName.Text = dbConnectionInfo[0]; txtDBName.Text = dbConnectionInfo[1]; if (dbConnectionInfo[2] == "SQL") { radioBtnSQL.Checked = true; txtDBUsername.ReadOnly = false; txtDBpassword.ReadOnly = false; txtDBUsername.Text = dbConnectionInfo[3]; } else { radioBtnWin.Checked = true; txtDBpassword.Clear(); txtDBUsername.Clear(); txtDBUsername.ReadOnly = true; txtDBpassword.ReadOnly = true; } }