Exemple #1
0
        private void LoadPrefsDatabase()
        {
            if (!File.Exists(DatabasePath))
            {
                prefsDatabase = new PrefsDatabase();
                return;
            }
            var bytes = File.ReadAllBytes(DatabasePath);

            if (bytes.Length == 0)
            {
                return;
            }
            prefsDatabase = SerializeUtility.DeSerialize <PrefsDatabase>(bytes);
        }
Exemple #2
0
 private void DelteAll()
 {
     prefsDatabase = null;
     Save();
 }