/// <summary>参数加载</summary> /// <param name="file">加密参数文件</param> /// <param name="appkey">加密参数</param> /// <returns></returns> static public string LoadPara(string file, string appkey) { string connectionString = CTHelper.LoadTxt(file); connectionString = CTHelper.Decrypt(connectionString, CTHelper.GetConfig(appkey)); return(connectionString); }
private void FormLogin_Load(object sender, EventArgs e) { if (CTHelper.GetConfig("username") != "") { tbUser.Text = CTHelper.GetConfig("username"); } if (CTHelper.GetConfig("userkey") != "") { tbPassword.Text = CTHelper.Decrypt(CTHelper.GetConfig("userkey"), "WXDX"); } }
private void CTDBForm1_Load(object sender, EventArgs e) { connectionString = CTHelper.LoadTxt("efp.txt"); connectionString = CTHelper.Decrypt(connectionString, CTHelper.GetConfig("appkey2")); CTHelper.UpdateConnectionString(Application.ProductName, conName, connectionString, providerName); lbHelpSpecimen.Text = Properties.Resources.help_ct_Specimen; lbHelpScan.Text = Properties.Resources.help_ct_Scan; lbHelpTag.Text = Properties.Resources.help_ct_Tag; lbHelp.Text = Properties.Resources.help_ct; lbHelp2.Text = Properties.Resources.help_ct; tabControl2.SelectedIndex = 3;//help updateUserInfo(); }