Beispiel #1
0
        static string[] GetConfigParameter(INIManager INI)
        {
            var rootCatalog = INI.GetPrivateString("RootCatalog", "BasePath");
            var BaseURL     = INI.GetPrivateString("BaseURL", "RootURL");

            string[] result = { rootCatalog, BaseURL };
            return(result);
        }
 public void UpdateRulesValue(INIManager INI, string token)
 {
     foreach (var item in rules)
     {
         item.IsActivated   = INI.GetPrivateString(item.Name, "IsActive") == "true"?true:false;
         item.TargetCatalog = INI.GetPrivateString(item.Name, "TargetPath");
         item.Token         = token;
         item.RequestNeedParameter();
     }
 }
Beispiel #3
0
        static INIManager GetINIManager(string path)
        {
            INIManager INI = new INIManager(path);

            return(INI);
        }