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 Orders { get; set; } public List Furnitures { get; set; } public List WorkPiece { get; set; } public List Clients { get; set; } public DataListSingleton() { WorkPiece = new List(); Furnitures = new List(); Orders = new List(); Clients = new List(); } public static DataListSingleton GetInstance() { if(_instance == null) { _instance = new DataListSingleton(); } return _instance; } } }