예제 #1
0
 public void InitValue(Apq.Config.ConfigChain cfg)
 {
     if (!Apq.Convert.HasMean(cbCFolder.Text))
     {
         cbCFolder.Text = cfg[this.GetType(), "CFolder"];
     }
 }
예제 #2
0
 public void Confirm(Apq.Config.ConfigChain cfg)
 {
     if (Apq.Convert.HasMean(cbCFolder.Text))
     {
         cfg[this.GetType(), "CFolder"] = cbCFolder.Text;
     }
     cfg.UserConfig.Save();
 }
예제 #3
0
 public void InitValue(Apq.Config.ConfigChain cfg)
 {
     if (!Apq.Convert.HasMean(txtDBName.Text))
     {
         txtDBName.Text     = cfg[this.GetType(), "DBName"];
         txtServerName.Text = cfg[this.GetType(), "ServerName"];
         txtUserId.Text     = cfg[this.GetType(), "UserId"];
         string PwdC = cfg[this.GetType(), "Pwd"];
         if (!string.IsNullOrEmpty(PwdC))
         {
             string PwdD = Apq.Security.Cryptography.DESHelper.DecryptString(PwdC, GlobalObject.RegConfigChain["Crypt", "DESKey"], GlobalObject.RegConfigChain["Crypt", "DESIV"]);
             txtPwd.Text = PwdD;
         }
     }
 }
예제 #4
0
 public void Confirm(Apq.Config.ConfigChain cfg)
 {
     if (Apq.Convert.HasMean(txtDBName.Text))
     {
         cfg[this.GetType(), "DBName"]     = txtDBName.Text.Trim();
         cfg[this.GetType(), "ServerName"] = txtServerName.Text.Trim();
         cfg[this.GetType(), "UserId"]     = txtUserId.Text.Trim();
         string PwdD = txtPwd.Text;
         if (!string.IsNullOrEmpty(PwdD))
         {
             string PwdC = Apq.Security.Cryptography.DESHelper.EncryptString(PwdD, GlobalObject.RegConfigChain["Crypt", "DESKey"], GlobalObject.RegConfigChain["Crypt", "DESIV"]);
             cfg[this.GetType(), "Pwd"] = PwdC;
         }
     }
     cfg.UserConfig.Save();
 }