Example #1
0
        /// <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);
        }
Example #2
0
 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");
     }
 }
Example #3
0
        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();
        }