2023-02-06 22:13:38 +04:00
|
|
|
|
using PlumbingRepairListImplement.Models;
|
2023-02-20 19:09:30 +04:00
|
|
|
|
using static System.Formats.Asn1.AsnWriter;
|
2023-02-06 22:13:38 +04:00
|
|
|
|
|
|
|
|
|
namespace PlumbingRepairListImplement
|
|
|
|
|
{
|
|
|
|
|
public class DataListSingleton
|
|
|
|
|
{
|
|
|
|
|
private static DataListSingleton? _instance;
|
|
|
|
|
public List<Component> Components { get; set; }
|
|
|
|
|
public List<Order> Orders { get; set; }
|
|
|
|
|
public List<Work> Works { get; set; }
|
2023-02-20 19:09:30 +04:00
|
|
|
|
public List<Store> Stores { get; set; }
|
2023-02-06 22:13:38 +04:00
|
|
|
|
|
|
|
|
|
private DataListSingleton()
|
|
|
|
|
{
|
|
|
|
|
Components = new List<Component>();
|
|
|
|
|
Orders = new List<Order>();
|
|
|
|
|
Works = new List<Work>();
|
2023-02-20 19:09:30 +04:00
|
|
|
|
Stores = new List<Store>();
|
2023-02-06 22:13:38 +04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static DataListSingleton GetInstance()
|
|
|
|
|
{
|
|
|
|
|
if (_instance == null)
|
|
|
|
|
{
|
|
|
|
|
_instance = new DataListSingleton();
|
|
|
|
|
}
|
|
|
|
|
return _instance;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|