예제 #1
0
        public void AddEnvItem(string strenv, string strval, string strplatform)
        {
            ThkEnvCfgItem eci = new ThkEnvCfgItem();

            eci.EnvCfgItem     = strenv;
            eci.EnvCfgValue    = strval;
            eci.EnvCfgFlatform = strplatform;
            arrCfgItem.Add(eci);
        }
예제 #2
0
 public bool UpdEnvItem(int nIdx, string strenv, string strval, string strplatform)
 {
     if (nIdx < 0 || nIdx >= arrCfgItem.Count)
     {
         return(false);//AddEnvItem(strenv, strval, strplatform);
     }
     else
     {
         ThkEnvCfgItem eci = (ThkEnvCfgItem)arrCfgItem[nIdx];
         eci.EnvCfgFlatform = strplatform;
         eci.EnvCfgItem     = strenv;
         eci.EnvCfgValue    = strval;
         return(true);
     }
 }