Ejemplo n.º 1
0
        public static GroupSummaryDatabase GenerateSummaryDatabase(SummaryDatabase _SummaryDatabase)
        {
            GroupSummaryDatabase newDatabase = new GroupSummaryDatabase();

            newDatabase.UpdateDatabase(_SummaryDatabase);
            return(newDatabase);
        }
Ejemplo n.º 2
0
        public static GroupSummaryDatabase LoadSummaryDatabase(string _RootDirectory)
        {
            GroupSummaryDatabase database = null;
            string databaseFile           = _RootDirectory + "\\SummaryDatabase\\GroupSummaryDatabase.dat";

            if (System.IO.File.Exists(databaseFile) == true)
            {
                if (VF.Utility.LoadSerialize(databaseFile, out database) == false)
                {
                    database = null;
                }
            }
            return(database);
        }
Ejemplo n.º 3
0
        public static void UpdateSummaryDatabase(string _RootDirectory, SummaryDatabase _SummaryDatabase)
        {
            GroupSummaryDatabase database = null;
            string databaseFile           = _RootDirectory + "\\SummaryDatabase\\GroupSummaryDatabase.dat";

            //if (System.IO.File.Exists(databaseFile) == true)
            //{
            //    if (VF.Utility.LoadSerialize(databaseFile, out database) == false)
            //        database = null;
            //}
            //if (database != null)
            //{
            //    database.UpdateDatabase(_SummaryDatabase);
            //}
            //else
            {
                database = GenerateSummaryDatabase(_SummaryDatabase);
            }
            VF.Utility.SaveSerialize(databaseFile, database);
        }