private static string updateDbPassWord(ConfigModel targetModel, [Optional] string dbPassWord)
 {
     if (dbPassWord == null)
     {
         AlLite.WriteLine(WriteMode.INFO, "No Update DataBase PassWord."); return(targetModel.DB_ACCESS_PASSWORD);
     }
     AlLite.WriteLine(WriteMode.INFO, $"Update DataBase PassWord: {Encrypter.onEncrypt(dbPassWord)}");
     WarningText("Password");
     return(dbPassWord);
 }
 public static ConfigModel onDeserialize(bool isDisplay = true)
 {
     onLogAction.Invoke("Deserialize launcher config.");
     using (StreamReader sr = new StreamReader(AppDomain.CurrentDomain.BaseDirectory + "launcher_config.yaml")) {
         Deserializer deserializer = new Deserializer();
         onLogAction.Invoke("Read the config file...");
         string readString = sr.ReadToEnd();
         onLogAction.Invoke("Return deserialize object.");
         ConfigModel model = deserializer.Deserialize <ConfigModel>(readString);
         if (isDisplay)
         {
             onLogAction.Invoke("+----------+----------+----------+----------+");
             onLogAction.Invoke(" => " + "API_KEY: ".PadLeft(16) + $"{model.API_KEY.Substring(0, 4)} [SECRET]");
             onLogAction.Invoke(" => " + "DB_ACCESS_USER: "******"{model.DB_ACCESS_USERNAME}");
             onLogAction.Invoke(" => " + "DB_ACCESS_PASS: "******"{Encrypter.onEncrypt(model.DB_ACCESS_PASSWORD)}");
             onLogAction.Invoke(" => " + "IGNORE_CASE: ".PadLeft(16) + $"{model.ignoreData.Count}");
             onLogAction.Invoke("+----------+----------+----------+----------+");
         }
         return(model);
     }
 }