public static bool setPasswordConfigBO(PasswordConfigBO pBO)
 {
     try
     {
         InIHelper.WriteConfig(pBO.key, "isDefaultPassword", pBO.isDefaultPassword.ToString());
         InIHelper.WriteConfig(pBO.key, "isPasswordPrompt", pBO.isPasswordPrompt.ToString());
         InIHelper.WriteConfig(pBO.key, "passwordPrompt", pBO.passwordPrompt);
         InIHelper.WriteConfig(pBO.key, "enterDirectly", pBO.enterDirectly.ToString());
         InIHelper.WriteConfig(pBO.key, "defaultPassword", DesHelper.Encode(pBO.defaultPassword));
         return(true);
     }
     catch
     {
         return(false);
     }
 }
        public static PasswordConfigBO getPasswordConfigBO()
        {
            PasswordConfigBO tmp = new PasswordConfigBO();

            tmp.isDefaultPassword = InIHelper.ReadConfig <bool>(tmp.key, "isDefaultPassword");
            string defaultPassword = InIHelper.ReadConfig <string>(tmp.key, "defaultPassword");

            if (defaultPassword != null && defaultPassword != "")
            {
                tmp.defaultPassword = DesHelper.Decode(defaultPassword);
            }
            tmp.isPasswordPrompt = InIHelper.ReadConfig <bool>(tmp.key, "isPasswordPrompt");
            string passwordPrompt = InIHelper.ReadConfig <string>(tmp.key, "passwordPrompt");

            if (passwordPrompt != null && passwordPrompt != "")
            {
                tmp.passwordPrompt = passwordPrompt;
            }
            tmp.enterDirectly = InIHelper.ReadConfig <bool>(tmp.key, "enterDirectly");
            return(tmp);
        }