Exemplo n.º 1
0
 private void SaveActionElementMapsToFiles()
 {
     foreach (SaveFile saveFile in saveFiles)
     {
         SaveFileParser.SaveFile(saveFile);
     }
 }
Exemplo n.º 2
0
        private void loadSaveDataButton_Click(object sender, RoutedEventArgs e)
        {
            _SettingsTreeViewRoot.Clear();
            saveFiles.Clear();

            List <string> listOfFiles = new List <string>(Directory.GetFiles(_saveDumpFolder));

            foreach (string filePath in listOfFiles)
            {
                var saveFile = SaveFileParser.LoadFile(filePath);
                if (saveFile != null)
                {
                    saveFiles.Add(saveFile);
                }
            }

            _SettingsTreeViewRoot.Add(new TreeViewRoot()
            {
                SaveFiles = saveFiles
            });
            axisMapsTreeView.ItemsSource   = _SettingsTreeViewRoot;
            buttonMapsTreeView.ItemsSource = _SettingsTreeViewRoot;
        }