Exemplo n.º 1
0
            public static void LOAD()
            {
                if (envKeys_ == null)
                {
                    envKeys_ = new Dictionary <string, ENV.ENVITM>();

                    if (ToolMobile.existsFile(fileName))
                    {
                        StringReader sr = new StringReader(ToolMobile.readFileText(fileName));

                        string line_ = null;
                        while ((line_ = sr.ReadLine()) != null)
                        {
                            ENV.ENVITM.PARSE(line_);
                        }
                    }
                }
            }
Exemplo n.º 2
0
 public static Stream findChain(String pFileName)
 {
     try
     {
         for (int i = 0; i < FileConst.keyDirLocations.Length; ++i)
         {
             string dir      = FileConst.keyDirLocations[i];
             string fullPath = Path.Combine(dir, pFileName);
             if (Directory.Exists(dir))
             {
                 if (ToolMobile.existsFile(fullPath))
                 {
                     return(new FileStream(fullPath, FileMode.Open));
                 }
             }
         }
         return(null);
     }
     catch
     {
         return(null);
     }
 }