Ejemplo n.º 1
0
 public IActionResult Init()
 {
     if (OAData.OADB.initiated)
     {
         OAData.OADB.Close();
     }
     OAData.OADB.configfilename = "config.xml";
     SObjects.Init();
     return(Redirect("~/Home/Index"));
 }
Ejemplo n.º 2
0
        public IActionResult Load(int nom)
        {
            if (OAData.OADB.initiated)
            {
                OAData.OADB.Close();
            }
            if (nom == 1)
            {
                OAData.OADB.configfilename = "config1.xml";
            }
            else
            {
                OAData.OADB.configfilename = "config.xml";
            }
            SObjects.Init();
            OAData.OADB.Load();

            return(Redirect("~/Home/Index"));
        }