Example #1
0
        public static CTable ConfigRead()
        {
            try
            {
                String xml  = File.ReadAllText(cfgName);
                CRoot  root = db.XMLToRootObject(xml);

                APIResult rs = new APIResult(root, xml, "");

                tbobj = rs.GetResultObject();
                param = rs.GetParamObject();
            }
            catch
            {
                //File not found
                SetUrl("http://wiscon.cloudhost.in.th:88/dbos/dev/mps/mps_pgsql/cgi-bin/dbos_db_api_dispatcher.pl");
                SetKey("1234");
                SetTheme("2");
            }

            return(tbobj);
        }