SUBD_Gerimovich_Ilya_PIbd-22/FurnitureAssembly/FurnitureAssemblyListImplement/DataListSingleton.cs
platoff aeeee d2cc3ef5d5 11
2024-05-24 12:23:50 +04:00

36 lines
882 B
C#

using FurnitureAssemblyListImplement.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FurnitureAssemblyListImplement
{
public class DataListSingleton
{
private static DataListSingleton? _instance;
public List<Order> Orders { get; set; }
public List<Furniture> Furnitures { get; set; }
public List<WorkPiece> WorkPiece { get; set; }
public DataListSingleton()
{
WorkPiece = new List<WorkPiece>();
Furnitures = new List<Furniture>();
Orders = new List<Order>();
}
public static DataListSingleton GetInstance()
{
if(_instance == null)
{
_instance = new DataListSingleton();
}
return _instance;
}
}
}