2023-02-20 08:36:19 +04:00
|
|
|
|
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<Condition> Conditions { get; set; }
|
|
|
|
|
public List<Order> Orders { get; set; }
|
|
|
|
|
public List<Travel> Travels { get; set; }
|
2023-04-28 00:02:22 +04:00
|
|
|
|
public List<Client> Clients { get; set; }
|
2023-04-28 08:35:07 +04:00
|
|
|
|
public List<Implementer> Implementers { get; set; }
|
2023-02-20 08:36:19 +04:00
|
|
|
|
private DataListSingleton()
|
|
|
|
|
{
|
|
|
|
|
Conditions = new List<Condition>();
|
|
|
|
|
Orders = new List<Order>();
|
|
|
|
|
Travels = new List<Travel>();
|
2023-04-28 00:02:22 +04:00
|
|
|
|
Clients = new List<Client>();
|
2023-04-28 08:35:07 +04:00
|
|
|
|
Implementers = new List<Implementer>();
|
2023-02-20 08:36:19 +04:00
|
|
|
|
}
|
|
|
|
|
public static DataListSingleton GetInstance()
|
|
|
|
|
{
|
|
|
|
|
if (_instance == null)
|
|
|
|
|
{
|
|
|
|
|
_instance = new DataListSingleton();
|
|
|
|
|
}
|
|
|
|
|
return _instance;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|