public FileTreatment(string f1) { this.fichIn = f1; this.newData = ChargeData.getInstance(); this.userList = new List<User>(); this.commandList = new List<Command>(); }
public InitialCharge(string f1) { this.file = f1; this.newData = ChargeData.getInstance(); this.commandsList = new List<Command>(); this.categoriesList = new List<Category>(); this.modLog = ModuloLog.GetInstance(Constantes.MODULO_LOG); }
/// <summary> /// Método para implementar el Singleton que controlará los accesos a la clase actual /// </summary> /// <param name="usedCommand"></param> public static ChargeData getInstance() { if (instance == null) { // Singleton instance = new ChargeData(); } return instance; }
public AbstractWorker(bool returnUpdatedDbStats) { this.chargeData = ChargeData.getInstance(); this.modLog = ModuloLog.GetInstance(Constantes.MODULO_LOG); this.returnUpdatedDbStats = returnUpdatedDbStats; }