Пример #1
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();
        }
Пример #2
0
 //clear parameters when closing
 private void CTDBForm1_FormClosing(object sender, FormClosingEventArgs e)
 {
     CTHelper.UpdateConnectionString(Application.ProductName, conName, "", "");
 }