using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using TravelCompanyListImplement.Models; namespace TravelCompanyListImplement { internal class DataListSingleton { private static DataListSingleton? _instance; public List Conditions { get; set; } public List Orders { get; set; } public List Travels { get; set; } private DataListSingleton() { Conditions = new List(); Orders = new List(); Travels = new List(); } public static DataListSingleton GetInstance() { if (_instance == null) { _instance = new DataListSingleton(); } return _instance; } } }