ISEbd-21_Zinovev_V.V._Furni.../FurnitureAssembly/FurnitureAssemblyListImplement/DataListSingleton.cs

39 lines
1.2 KiB
C#
Raw Permalink Normal View History

2024-03-20 19:37:08 +04:00
using FurnitureAssemblyListImplement.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FurnitureAssemblyListImplement
{
2024-05-05 20:11:20 +04:00
public class DataListSingleton
2024-03-20 19:37:08 +04:00
{
private static DataListSingleton? _instance;
public List<Workpiece> Workpieces { get; set; }
public List<Order> Orders { get; set; }
public List<Furniture> Furnitures { get; set; }
2024-05-05 20:11:20 +04:00
public List<Client> Clients { get; set; }
2024-05-05 23:58:51 +04:00
public List<Implementer> Implementers { get; set; }
2024-05-12 16:26:49 +04:00
public List<MessageInfo> MessageInfos { get; set; }
2024-03-20 19:37:08 +04:00
private DataListSingleton()
{
Workpieces = new List<Workpiece>();
Orders = new List<Order>();
Furnitures = new List<Furniture>();
2024-05-05 20:11:20 +04:00
Clients = new List<Client>();
2024-05-05 23:58:51 +04:00
Implementers = new List<Implementer>();
2024-05-12 16:26:49 +04:00
MessageInfos = new List<MessageInfo>();
2024-03-20 19:37:08 +04:00
}
public static DataListSingleton GetInstance()
{
if (_instance == null)
{
_instance = new DataListSingleton();
}
return _instance;
}
}
}