using PlumbingRepairListImplement.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PlumbingRepairListImplement { public class DataListSingleton { private static DataListSingleton? _instance; public List Components { get; set; } public List Orders { get; set; } public List Works { get; set; } public List Stores { get; set; } private DataListSingleton() { Components = new List(); Orders = new List(); Works = new List(); Stores = new List(); } public static DataListSingleton GetInstance() { if (_instance == null) { _instance = new DataListSingleton(); } return _instance; } } }