2024-02-13 23:46:41 +04:00
|
|
|
|
using LawFirmListImplement.Models;
|
|
|
|
|
|
|
|
|
|
namespace LawFirmListImplement
|
|
|
|
|
{
|
|
|
|
|
public class DataListSingleton
|
|
|
|
|
{
|
|
|
|
|
private static DataListSingleton? _instance;
|
|
|
|
|
public List<Blank> Blanks { get; set; }
|
|
|
|
|
public List<Order> Orders { get; set; }
|
|
|
|
|
public List<Document> Documents { get; set; }
|
2024-05-17 19:36:24 +04:00
|
|
|
|
public List<Client> Clients { get; set; }
|
|
|
|
|
private DataListSingleton()
|
2024-02-13 23:46:41 +04:00
|
|
|
|
{
|
|
|
|
|
Blanks = new List<Blank>();
|
|
|
|
|
Orders = new List<Order>();
|
|
|
|
|
Documents = new List<Document>();
|
2024-05-17 19:36:24 +04:00
|
|
|
|
Clients = new List<Client>();
|
|
|
|
|
}
|
2024-02-13 23:46:41 +04:00
|
|
|
|
public static DataListSingleton GetInstance()
|
|
|
|
|
{
|
|
|
|
|
if (_instance == null)
|
|
|
|
|
{
|
|
|
|
|
_instance = new DataListSingleton();
|
|
|
|
|
}
|
|
|
|
|
return _instance;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|