protected override void InitForm() { formCode = "DBConnect"; base.InitForm(); this.txtMSSQLServer.Text = SystemInfo.ini.ReadIni("MSSQL", "Server", "(local)"); this.rbMSSQLWindowsNT.Checked = SystemInfo.ini.ReadIni("MSSQL", "WindowsNT", true); this.rbMSSQLSQL.Checked = !this.rbMSSQLWindowsNT.Checked; this.txtMSSQLUserName.Text = Pub.GetAesDecrypt(SystemInfo.ini.ReadIni("MSSQL", "UserName", ""), SystemInfo.Encry); this.txtMSSQLUserPass.Text = Pub.GetAesDecrypt(SystemInfo.ini.ReadIni("MSSQL", "UserPass", ""), SystemInfo.Encry); pnlMSSQL.Enabled = (SystemInfo.DBType == 1) || (SystemInfo.DBType == 2); pnlMSSQL.Visible = pnlMSSQL.Enabled; rbMSSQL_Click(null, null); }