コード例 #1
0
        public static BDDConfiguration Charger()
        {
            BDDConfiguration configuration = new BDDConfiguration();

            if (File.Exists(Path.Combine(Directory.GetCurrentDirectory(), "bdd.bin")))
            {
                configuration = BDDConfiguration.Load();
            }

            return(configuration);
        }
コード例 #2
0
        public ActionResult BDD()
        {
            BDDConfiguration informationsServeurDomaine = new BDDConfiguration();

            if (System.IO.File.Exists(Path.Combine(Server.MapPath("~").ToString(), "bdd.bin")))
            {
                informationsServeurDomaine = BDDConfiguration.Load(Path.Combine(Server.MapPath("~").ToString(), "bdd.bin"));
            }

            return(View(informationsServeurDomaine));
        }