Worms4Editor/W4Gui/DataManager.cs

42 lines
931 B
C#
Raw Normal View History

2023-01-12 03:50:02 +00:00
using LibW4M;
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 bool SaveLoaded = false;
public static W4SaveFile SaveFile;
public static void SaveAll()
{
foreach(TabEntry control in SaveComponents)
{
2023-02-16 04:12:22 +00:00
try
{
control.SaveFromControl();
}
catch { };
2023-01-12 03:50:02 +00:00
}
}
public static void LoadAll()
{
foreach (TabEntry control in SaveComponents)
{
2023-02-16 04:12:22 +00:00
try
{
control.LoadIntoControl();
}
catch { };
2023-01-12 03:50:02 +00:00
}
}
public static List<TabEntry> SaveComponents = new List<TabEntry>();
}
}