refactor: Cambiada la estructura de las controladoras

This commit is contained in:
2024-04-26 20:14:14 +01:00
parent 51676e6434
commit 675d86f38d
11 changed files with 64 additions and 87 deletions

20
Controladora/Singleton.cs Normal file
View File

@@ -0,0 +1,20 @@
using System.Collections.ObjectModel;
using System.Runtime.InteropServices;
using Modelo;
namespace Controladora
{
public abstract class Singleton<T> where T : new()
{
// Singleton thread-safe por si quiero usar "Parallel"
private static T instance = new T();
public static T Instance
{
get
{
return instance;
}
}
}
}