29 lines
665 B
C#
Raw Normal View History

using MotorPlantListImplement.Models;
2024-05-05 21:43:24 +04:00
namespace MotorPlantListImplement
{
2024-05-05 21:43:24 +04:00
public class DataListSingleton
{
private static DataListSingleton? _instance;
public List<Component> Components { get; set; }
public List<Order> Orders { get; set; }
public List<Engine> Engines { get; set; }
2024-05-01 21:35:57 +04:00
public List<Shop> Shops { get; set; }
private DataListSingleton()
2024-05-05 21:43:24 +04:00
{
Components = new List<Component>();
Orders = new List<Order>();
Engines = new List<Engine>();
2024-05-01 21:35:57 +04:00
Shops = new List<Shop>();
}
public static DataListSingleton GetInstance()
2024-05-05 21:43:24 +04:00
{
if (_instance == null)
{
_instance = new DataListSingleton();
}
return _instance;
}
}
2024-03-23 18:12:12 +04:00
}