using SewingDressesListImplement.Models; namespace SewingDressesListImplement { public class DataListSingleton { private static DataListSingleton? _instance; public List Components { get; set; } public List Orders { get; set; } public List Dresses { get; set; } public List Clients { get; set; } public List Implements { get; set; } public List Messages { get; set; } private DataListSingleton() { Components = new List(); Orders = new List(); Dresses = new List(); Clients = new List(); Implements = new List(); Messages = new List(); } public static DataListSingleton GetInstance() { if (_instance == null) { _instance = new DataListSingleton(); } return _instance; } } }