46 lines
1.0 KiB
C#
46 lines
1.0 KiB
C#
using LibW4M;
|
|
using LibW4M.XBOX;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using W4Gui.Tabs;
|
|
|
|
namespace W4Gui
|
|
{
|
|
public static class DataManager
|
|
{
|
|
public static SaveType LoadedSaveType;
|
|
public static string LoadedSavePath;
|
|
|
|
public static bool SaveLoaded = false;
|
|
public static W4SaveFile SaveFile;
|
|
public static void SaveAll()
|
|
{
|
|
foreach(TabEntry control in SaveComponents)
|
|
{
|
|
try
|
|
{
|
|
control.SaveFromControl();
|
|
}
|
|
catch { };
|
|
}
|
|
}
|
|
|
|
public static void LoadAll()
|
|
{
|
|
foreach (TabEntry control in SaveComponents)
|
|
{
|
|
try
|
|
{
|
|
control.LoadIntoControl();
|
|
}
|
|
catch { };
|
|
}
|
|
}
|
|
|
|
public static List<TabEntry> SaveComponents = new List<TabEntry>();
|
|
}
|
|
}
|