ISEbd-21_Zinovev_V.V._Furni.../FurnitureAssembly/FurnitureAssemblyListImplement/DataListSingleton.cs
2024-03-20 19:37:08 +04:00

34 lines
887 B
C#

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