Exemplo n.º 1
0
        public static void SetUpConfig()
        {
            String pfad = getConfigPath() + @"\gmp.xml";

            //zERROR.GetZErr(Process.ThisProcess()).Report(2, 'G', "Path: "+pfad, 0, "Program.cs", 0);
            if (!File.Exists(pfad))
            {
                zERROR.GetZErr(Process.ThisProcess()).Report(2, 'G', "File does not exists: " + pfad, 0, "Program.cs", 0);
            }
            clientOptions = ClientOptions.Load(pfad);
        }
 public static ClientOptions getClientOptions()
 {
     if (co == null)
     {
         try
         {
             co = ClientOptions.Load("./conf/gmp.xml");
         }
         catch (Exception ex)
         {
             co = new ClientOptions();
             co.Save("./conf/gmp.xml");
         }
     }
     return(co);
 }