Esempio n. 1
0
        public JsonDataBase(string path, bool GZip, bool Encryption, SecureString Password = null)
        {
            this.GZip       = GZip;
            this.Encryption = Encryption;
            this.InitializePassword(Password);

            var info = Directories.Create(path);

            Path = info.FullName;

            this.Load();
        }
Esempio n. 2
0
        public static string CreateSimple(string path)
        {
            DirectoryInfo di = Directories.Create(path);

            if (di == null)
            {
                return(null);
            }
            else
            {
                return(di.FullName);
            }
        }
Esempio n. 3
0
        }                                       //KeyToDataContent

        public JsonStorage(string directory, string name, bool GZip, bool Encryption, SecureString Password = null)
        {
            if (Files.HasExtension(name))
            {
                name = name + extension;
            }

            Path     = Directories.Create(directory).FullName;
            this.Key = name;

            this.GZip       = GZip;
            this.Encryption = Encryption;
            this.InitializePassword(Password);


            this.Load();
        }