PIbd-22_Gerimovich.I.M._Fur.../FurnitureAssembly/FurnitureAssemblyListImplement/DataListSingleton.cs

36 lines
882 B
C#
Raw Normal View History

2024-02-28 01:13:41 +04:00
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;
2024-02-28 11:03:17 +04:00
public List<Order> Orders { get; set; }
public List<Furniture> Furnitures { get; set; }
2024-02-28 01:13:41 +04:00
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;
}
}
}