35 lines
985 B
C#
35 lines
985 B
C#
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; }
|
|
public List<Client> Clients { get; set; }
|
|
private DataListSingleton()
|
|
{
|
|
Conditions = new List<Condition>();
|
|
Orders = new List<Order>();
|
|
Travels = new List<Travel>();
|
|
Clients = new List<Client>();
|
|
}
|
|
public static DataListSingleton GetInstance()
|
|
{
|
|
if (_instance == null)
|
|
{
|
|
_instance = new DataListSingleton();
|
|
}
|
|
return _instance;
|
|
}
|
|
}
|
|
}
|