Exemple #1
0
        private void LoadFiles()
        {
            ResourcePacks.Clear();

            foreach (var file in Directory.GetFiles(_pathService.ResourcePackDirectory, "*.rpk"))
            {
                ResourcePacks.Add(Path.GetFileNameWithoutExtension(file));
            }
        }
        private void LoadData()
        {
            ModuleData moduleData = _domainService.GetLoadedModuleData();

            ResourcePacks.Clear();

            foreach (var pack in moduleData.ResourcePacks)
            {
                ResourcePacks.Add(pack);
            }

            SelectedAvailableResourcePack = AvailableResourcePacks.First();
        }
 private void ModuleClosed()
 {
     ResourcePacks.Clear();
 }