public bool CreateNewModuleFile(string newModuleName)
        {
            //.dat Datei zur Speicherung der Fragen anlegen
            var moduleSaveFile = new ModuleQuestions(newModuleName);

            Persist.Save(moduleSaveFile, "Modules\\" + newModuleName);
            var success = Persist.GetModuleFiles().Contains(newModuleName);

            Debug.Log("Erstellen der Modul-Speicher-Datei war erfolgreich? " + success);
            return(success);
        }
示例#2
0
        public List <string> GetModulesWithEnoughQuestionWarningAsList()
        {
            var tmpModuleList = new List <string>(module);
            var allModuls     = Persist.GetModuleFiles();

            for (var index = 0; index < allModuls.Count; index++)
            {
                var modul            = allModuls[index];
                var loadedModuleFile = Persist.Load <ModuleQuestions>("Modules\\" + modul);
                if (!loadedModuleFile.HasEnoughQuestions())
                {
                    tmpModuleList[index] += " (" + loadedModuleFile.GetCombinedNumberOfQuestions() + "/90 Fragen)";
                }
            }
            return(tmpModuleList);
        }
示例#3
0
 public List <string> GetModulesAsList()
 {
     // Refresh
     module = Persist.GetModuleFiles();
     return(module);
 }
示例#4
0
 private void Start()
 {
     //Initiales Laden der Module
     module = Persist.GetModuleFiles();
 }