Example #1
0
            public static void LoadAll()
            {
                string GroupsDir = "./Database/Groups/";

                Utilities.IO.PrepareDirectory("./Database/");
                Utilities.IO.PrepareDirectory("./Database/Groups");
                DirectoryInfo[] GroupsDirContents = new DirectoryInfo(GroupsDir).GetDirectories();
                Logger.Log.SystemMessage("Loading All Groups...");
                if (GroupsDirContents.Length == 0)
                {
                    Logger.Log.SystemMessage("    No Groups are in the Database.");
                    return;
                }
                foreach (DirectoryInfo ThisDir in GroupsDirContents)
                {
                    GroupDB.Load(ThisDir.Name);
                }
                Logger.Log.SystemMessage("    All Groups Loaded.");
            }